diff options
author | 2020-05-29 12:35:06 +0200 | |
---|---|---|
committer | 2020-06-02 11:22:02 +0000 | |
commit | 6ba032346a961f749f6f1ef965c31d0f5c691920 (patch) | |
tree | b03b42361e6af2f8fbe398817886f05f12e7a7a1 /robot/resources/mr_interface.robot | |
parent | bd888238170b8069d81b1530ebbff4973ad98ca1 (diff) |
Fix 5g_bulk_PM and pnf_registrate test case errors
Issue-ID: INT-1521
Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Change-Id: I48b012b2a2d88b55eb83037654ee92272e4b7684
(cherry picked from commit ae8615f04089716e99b4721954d08ae2b6c20804)
Diffstat (limited to 'robot/resources/mr_interface.robot')
-rw-r--r-- | robot/resources/mr_interface.robot | 13 |
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} |