summaryrefslogtreecommitdiffstats
path: root/robot/resources/mr_interface.robot
diff options
context:
space:
mode:
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}