Added support for new 'REST Hard Power Off' test.
Change-Id: Ia1767cfad2b06d7b56bf19ef41c7103b6310ff5d
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/data/boot_lists/All b/data/boot_lists/All
index 567ca44..c75b10b 100755
--- a/data/boot_lists/All
+++ b/data/boot_lists/All
@@ -6,6 +6,8 @@
IPMI Power On (mfg)
REST Power Off
REST Power Off (mfg)
+REST Hard Power Off
+REST Hard Power Off (mfg)
IPMI Power Off
IPMI Power Off (mfg)
IPMI Power Soft
diff --git a/data/boot_lists/Manufacturing b/data/boot_lists/Manufacturing
index c3254c5..ea07c75 100755
--- a/data/boot_lists/Manufacturing
+++ b/data/boot_lists/Manufacturing
@@ -1,6 +1,7 @@
REST Power On (mfg)
IPMI Power On (mfg)
REST Power Off (mfg)
+REST Hard Power Off (mfg)
IPMI Power Off (mfg)
IPMI Power Soft (mfg)
Host Power Off (mfg)
diff --git a/data/boot_lists/Power_off b/data/boot_lists/Power_off
index 268b8da..4b0bb5a 100755
--- a/data/boot_lists/Power_off
+++ b/data/boot_lists/Power_off
@@ -1,5 +1,7 @@
REST Power Off
REST Power Off (mfg)
+REST Hard Power Off
+REST Hard Power Off (mfg)
IPMI Power Off
IPMI Power Off (mfg)
IPMI Power Soft
diff --git a/data/boot_table.json b/data/boot_table.json
index 27f61fe..4c81f8a 100644
--- a/data/boot_table.json
+++ b/data/boot_table.json
@@ -68,6 +68,26 @@
"method": "Initiate Host PowerOff wait=${0}",
"lib_file_path": "state_manager.robot"
},
+ # Initiate a hard power off using the REST API interface.
+ "REST Hard Power Off": {
+ "start": {
+ "rest": "^1$",
+ "chassis": "^On$"
+ },
+ "end": {
+ "rest": "^1$",
+ "chassis": "^Off$",
+ "boot_progress": "^Off|Unspecified$",
+ "host": "^Off$",
+ "os_ping": "^0$",
+ "os_login": "^0$",
+ "os_run_cmd": "^0$"
+ },
+ "bmc_reboot": 0,
+ "method_type": "keyword",
+ "method": "Hard Power Off wait=${0}",
+ "lib_file_path": "state_manager.robot"
+ },
# Initiate a power off using the IPMI interface.
"IPMI Power Off": {
"start": {