summaryrefslogtreecommitdiffstats
path: root/robot/resources/mr_interface.robot
diff options
context:
space:
mode:
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2020-05-29 12:35:06 +0200
committerKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2020-05-29 12:51:47 +0200
commitae8615f04089716e99b4721954d08ae2b6c20804 (patch)
treeb03b42361e6af2f8fbe398817886f05f12e7a7a1 /robot/resources/mr_interface.robot
parente24d88b6db68b40a46dab1c5c663db3ac2c79300 (diff)
Fix 5g_bulk_PM and pnf_registrate test case errors1.6.3
Issue-ID: INT-1521 Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Change-Id: I48b012b2a2d88b55eb83037654ee92272e4b7684
Diffstat (limited to 'robot/resources/mr_interface.robot')
-rw-r--r--robot/resources/mr_interface.robot13
1 files changed, 13 insertions, 0 deletions
diff --git a/robot/resources/mr_interface.robot b/robot/resources/mr_interface.robot
index 8204315a..2d3cda28 100644
--- a/robot/resources/mr_interface.robot
+++ b/robot/resources/mr_interface.robot
@@ -106,6 +106,19 @@ Run MR Auth Get Request
Log Received response from message router ${resp.text}
[Return] ${resp}
+Run MR Auth Post Request (User And Pass)
+ [Documentation] Runs MR Authenticated Post Request
+ [Arguments] ${data_path} ${username} ${password} ${data}
+ ${auth}= Create List ${username} ${password}
+ ${session}= Create Session mr ${MR_ENDPOINT} auth=${auth}
+ ${uuid}= Generate UUID4
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}
+ ${resp}= Post Request mr ${data_path} headers=${headers} data=${data}
+ ${status_string}= Convert To String ${resp.status_code}
+ Should Match Regexp ${status_string} ^(204|200)$
+ Log Received response from message router ${resp.text}
+ [Return] ${resp}
+
Run MR Get Request
[Documentation] Runs MR Get request
[Arguments] ${data_path}