Fix REST vs Redfish dump URI
Change-Id: Ib41ee7fc138bfb5483e430146f61b7de0dbdbe29
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/dump_utils.robot b/lib/dump_utils.robot
index 4c1646c..81db023 100644
--- a/lib/dump_utils.robot
+++ b/lib/dump_utils.robot
@@ -21,13 +21,13 @@
# returned if out of dump space was
# detected when creating the dump.
- ${resp}= OpenBMC Get Request ${DUMP_URI}
+ ${resp}= OpenBMC Get Request ${REST_DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Global Variable ${DUMP_URI} /xyz/openbmc_project/dump/
+ ... Set Global Variable ${REST_DUMP_URI} /xyz/openbmc_project/dump/
${data}= Create Dictionary data=@{EMPTY}
${resp}= OpenBMC Post Request
- ... ${DUMP_URI}action/CreateDump data=${data} quiet=${1}
+ ... ${REST_DUMP_URI}action/CreateDump data=${data} quiet=${1}
Run Keyword If '${check_out_of_space}' == '${False}'
... Run Keyword And Return Get The Dump Id ${resp}
@@ -112,7 +112,7 @@
# dump_id An integer value that identifies a particular dump
# object(e.g. 1, 3, 5).
- ${resp}= OpenBMC Get Request ${DUMP_URI}
+ ${resp}= OpenBMC Get Request ${REST_DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
@@ -127,7 +127,7 @@
# Description of Argument(s):
# dump_id An integer value that identifies a particular dump (e.g. 1, 3).
- ${resp}= OpenBMC Get Request ${DUMP_URI}
+ ${resp}= OpenBMC Get Request ${REST_DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
@@ -140,7 +140,7 @@
Delete All Dumps
[Documentation] Delete all dumps.
- ${resp}= OpenBMC Get Request ${DUMP_URI}
+ ${resp}= OpenBMC Get Request ${REST_DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
@@ -185,18 +185,18 @@
Delete All BMC Dump
[Documentation] Delete all BMC dump entries using "DeleteAll" interface.
- ${resp}= OpenBMC Get Request ${DUMP_URI}
+ ${resp}= OpenBMC Get Request ${REST_DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
- ... Set Global Variable ${DUMP_URI} /xyz/openbmc_project/dump/
+ ... Set Global Variable ${REST_DUMP_URI} /xyz/openbmc_project/dump/
${data}= Create Dictionary data=@{EMPTY}
- ${resp}= Openbmc Post Request ${DUMP_URI}action/DeleteAll data=${data}
+ ${resp}= Openbmc Post Request ${REST_DUMP_URI}action/DeleteAll data=${data}
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
Dump Should Not Exist
[Documentation] Verify that BMC dumps do not exist.
- ${resp}= OpenBMC Get Request ${DUMP_URI}
+ ${resp}= OpenBMC Get Request ${REST_DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/
@@ -223,7 +223,7 @@
Get Dump Entries
[Documentation] Return dump entries list.
- ${resp}= OpenBMC Get Request ${DUMP_URI}
+ ${resp}= OpenBMC Get Request ${REST_DUMP_URI}
Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}'
... Set Global Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/