summaryrefslogtreecommitdiffstats
path: root/robot/resources/mr_interface.robot
diff options
context:
space:
mode:
authorrajendrajaiswal <rajendra.jaiswal@ericsson.com>2019-11-25 12:18:51 +0000
committerDaniel Rose <dr695h@att.com>2020-01-17 20:01:39 +0000
commit9b723a87afa7081cb4f03e2c5c45f4848486d365 (patch)
treed5d23285164b2d90a1f84d1a808bf53d43fe9f32 /robot/resources/mr_interface.robot
parent4429aa33f676ffd494ef8621326e13050aa7be2a (diff)
Add Bulk PM "Data Plane" Usecase Testcase Robot Automation
Change-Id: If7ec8c953f0ad61c427d6533f235b3cf61b9fffc Issue-ID: INT-1375 Signed-off-by: rajendrajaiswal <rajendra.jaiswal@ericsson.com>
Diffstat (limited to 'robot/resources/mr_interface.robot')
-rw-r--r--robot/resources/mr_interface.robot13
1 files changed, 12 insertions, 1 deletions
diff --git a/robot/resources/mr_interface.robot b/robot/resources/mr_interface.robot
index 7a3c3d90..8204315a 100644
--- a/robot/resources/mr_interface.robot
+++ b/robot/resources/mr_interface.robot
@@ -5,7 +5,7 @@ Library DateTime
Library Process
Library ONAPLibrary.JSON
Library ONAPLibrary.Utilities
-Library ONAPLibrary.Templating WITH NAME Templating
+Library ONAPLibrary.Templating WITH NAME Templating
Resource global_properties.robot
@@ -95,6 +95,17 @@ Run MR Auth Put Request
Log Received response from message router ${resp.text}
[Return] ${resp}
+Run MR Auth Get Request
+ [Documentation] Runs MR Authenticated Put Request
+ [Arguments] ${data_path} ${username} ${password}
+ ${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} X-FromAppId=${GLOBAL_APPLICATION_ID}
+ ${resp}= Get Request mr ${data_path} headers=${headers}
+ Log Received response from message router ${resp.text}
+ [Return] ${resp}
+
Run MR Get Request
[Documentation] Runs MR Get request
[Arguments] ${data_path}