aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/mso_interface.robot
diff options
context:
space:
mode:
authorTal Karbachinsky <talka@amdocs.com>2018-01-25 10:27:17 +0200
committerTal Karbachinsky <talka@amdocs.com>2018-01-25 10:32:07 +0200
commitc3bf551122c35ac6e65463555d83fc50823244d9 (patch)
tree1c5de3a6d876bd67f424a862a29131a1178a7313 /robot/resources/mso_interface.robot
parent88a967c466a4b4821a136040268b7937597a936d (diff)
added mso delete option & string encoder
Issue-ID: TEST-75 Change-Id: If4e6ff74bafb63ca73f6be6f6dc32b165b0ed9d8 Signed-off-by: Tal Karbachinsky <talka@amdocs.com>
Diffstat (limited to 'robot/resources/mso_interface.robot')
-rw-r--r--robot/resources/mso_interface.robot16
1 files changed, 16 insertions, 0 deletions
diff --git a/robot/resources/mso_interface.robot b/robot/resources/mso_interface.robot
index 6bc62296..db776d4d 100644
--- a/robot/resources/mso_interface.robot
+++ b/robot/resources/mso_interface.robot
@@ -62,3 +62,19 @@ Run MSO Post request
${resp}= Post Request mso ${data_path} data=${data} headers=${headers}
Log Received response from mso ${resp.text}
[Return] ${resp}
+
+Run MSO Delete request
+ [Documentation] Runs an MSO Delete request
+ [Arguments] ${data_path} ${data}
+ sleep 2
+ ${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}
+ log ${data}
+ ${data1} Encode String ${data}
+ log ${data1}
+ ${resp}= Delete Request mso ${data_path} ${data1} headers=${headers}
+ Log Received response from mso ${resp.text}
+ [Return] ${resp}