summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMor Dabastany <mor.dabastany@amdocs.com>2017-08-07 16:14:19 +0300
committerMor Dabastany <mor.dabastany@amdocs.com>2017-08-07 16:15:34 +0300
commit186c3581e24db7fac8f6fb5523e4fd2a52f61e6d (patch)
tree9d8f58a54ae6bff4bd05ee48070ca5de6741591e
parentaa6f3a738c0319a216bb0abcf682bd04b9a7ad2e (diff)
Enhance mso_interface.robot
Adding POST request to MSO interface. Issue: TEST-51 Change-Id: Ia70333b8ba61337db9df09ed77665f83ed52fbbc Signed-off-by: Mor Dabastany <mor.dabastany@amdocs.com>
-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}