Update variable scope for DUMP URI logic
Changes:
- Set the DUMP URI to Global variable so that test, suite and
user keyword can access in all.
Change-Id: Ide923612a8d3e68735613f42ef6894210c70c825
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/dump_utils.robot b/lib/dump_utils.robot
index 19884fe..6fbadef 100644
--- a/lib/dump_utils.robot
+++ b/lib/dump_utils.robot
@@ -23,7 +23,7 @@
${resp}= OpenBMC Get Request ${DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Test Variable ${DUMP_URI} /xyz/openbmc_project/dump/
+ ... Set Global Variable ${DUMP_URI} /xyz/openbmc_project/dump/
${data}= Create Dictionary data=@{EMPTY}
${resp}= OpenBMC Post Request
@@ -114,7 +114,7 @@
${resp}= OpenBMC Get Request ${DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Test Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
+ ... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}${dump_id}
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
@@ -129,7 +129,7 @@
${resp}= OpenBMC Get Request ${DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Test Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
+ ... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
${data}= Create Dictionary data=@{EMPTY}
${resp}= OpenBMC Post Request
@@ -142,7 +142,7 @@
${resp}= OpenBMC Get Request ${DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Test Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
+ ... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
# Check if dump entries exist, if not return.
${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}list quiet=${1}
@@ -181,7 +181,7 @@
${resp}= OpenBMC Get Request ${DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Test Variable ${DUMP_URI} /xyz/openbmc_project/dump/
+ ... Set Global Variable ${DUMP_URI} /xyz/openbmc_project/dump/
${data}= Create Dictionary data=@{EMPTY}
${resp}= Openbmc Post Request ${DUMP_URI}action/DeleteAll data=${data}
@@ -192,7 +192,7 @@
${resp}= OpenBMC Get Request ${DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Test Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
+ ... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}list quiet=${1}
Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}
@@ -219,7 +219,7 @@
${resp}= OpenBMC Get Request ${DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Test Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
+ ... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
${dump_entries}= Get URL List ${DUMP_ENTRY_URI}
[Return] ${dump_entries}