aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/mr_interface.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-06-13 16:16:52 -0400
committerDR695H <dr695h@att.com>2019-06-13 16:18:11 -0400
commit18872bc32103112ea6e1582dbb1c2764f99442f1 (patch)
tree3b87443f10657bb7c956cee67eb6c4caccf2d085 /robot/resources/mr_interface.robot
parente65d7fec679cc393c08f0d32f1ad61bbd71a35f8 (diff)
move uuid to onaplib.utilities
Change-Id: I57860949ad4417bb080cf5269e8fcc555e089da6 Issue-ID: TEST-158 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/mr_interface.robot')
-rw-r--r--robot/resources/mr_interface.robot6
1 files changed, 3 insertions, 3 deletions
diff --git a/robot/resources/mr_interface.robot b/robot/resources/mr_interface.robot
index efd4e423..85c5a614 100644
--- a/robot/resources/mr_interface.robot
+++ b/robot/resources/mr_interface.robot
@@ -1,10 +1,10 @@
*** Settings ***
Documentation The main interface for interacting with Message router. It handles low level stuff like managing the http request library and message router required fields
Library RequestsLibrary
-Library UUID
Library DateTime
Library Process
Library ONAPLibrary.JSON
+Library ONAPLibrary.Utilities
Resource global_properties.robot
Resource ../resources/json_templater.robot
@@ -99,7 +99,7 @@ Run MR Get Request
[Documentation] Runs MR Get request
[Arguments] ${data_path}
${session}= Create Session mr ${MR_ENDPOINT}
- ${uuid}= Generate UUID
+ ${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}
@@ -112,7 +112,7 @@ Run MR Post Request
${timestamp}= Get Current Date
${dict}= Create Dictionary timestamp=${timestamp}
${data}= Fill JSON Template File ${MR_PUBLISH_TEMPLATE} ${dict}
- ${uuid}= Generate UUID
+ ${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}= Post Request mr ${data_path} data=${data} headers=${headers}
Log Received response from message router ${resp.text}