summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/mso_interface.robot12
1 files changed, 10 insertions, 2 deletions
diff --git a/robot/resources/mso_interface.robot b/robot/resources/mso_interface.robot
index cf6aa643..3e983e8a 100644
--- a/robot/resources/mso_interface.robot
+++ b/robot/resources/mso_interface.robot
@@ -51,5 +51,13 @@ Poll MSO Get Request
Log Received response from mso ${resp.text}
[Return] ${resp}
-
-
+Run MSO Post request
+ [Documentation] Runs an MSO post request
+ [Arguments] ${data_path} ${data}
+ ${auth}= Create List ${GLOBAL_MSO_USERNAME} ${GLOBAL_MSO_PASSWORD}
+ Log Creating session ${MSO_ENDPOINT}
+ ${session}= Create Session mso ${MSO_ENDPOINT} auth=${auth}
+ ${uuid}= Generate UUID
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
+ ${resp}= Post Request mso ${data_path} data=${data} headers=${headers}
+ [Return] ${resp}