Updated documentation and scripts using https between agent and MR

Documentation of all api test script for function test scripts

Enabled testcase to test both http and https between the policy agent and MR

POST message to MR now also support single message that is not in an array

Change-Id: I8540244786d941d0387425667adb637e66e1ce2e
Issue-ID: NONRTRIC-154
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
diff --git a/test/mrstub/app/main.py b/test/mrstub/app/main.py
index 5bb0988..8804a04 100644
--- a/test/mrstub/app/main.py
+++ b/test/mrstub/app/main.py
@@ -211,6 +211,12 @@
         try:
             answer=request.json
             print(AGENT_WRITE_URL+ " json=" + json.dumps(answer, indent=2))
+            if isinstance(answer, dict):
+                #Create a an array if the answer is a dict (single message)
+                answer_list=[]
+                answer_list.append(answer)
+                answer=answer_list
+
             for item in answer:
                 id=item['correlationId']
                 if (id is None):