Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 1 | *** Settings *** |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 2 | Documentation Test IPMI sensor IDs. |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 3 | |
| 4 | Resource ../../lib/rest_client.robot |
| 5 | Resource ../../lib/ipmi_client.robot |
| 6 | Resource ../../lib/openbmc_ffdc.robot |
| 7 | Resource ../../lib/state_manager.robot |
| 8 | Library ../../data/model.py |
| 9 | Resource ../../lib/boot_utils.robot |
| 10 | Resource ../../lib/utils.robot |
| 11 | |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 12 | Test Teardown Test Teardown Execution |
| 13 | |
| 14 | *** Test Cases *** |
| 15 | |
| 16 | DIMM Present And Not Present |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 17 | [Documentation] Verify the IPMI sensor for DIMM3 present and not present. |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 18 | [Tags] DIMM_Present_And_Not_Present |
| 19 | |
| 20 | # Set the dimm3 Present to 1 |
| 21 | Run IPMI Command |
| 22 | ... 0x04 0x30 0xac 0xa9 0x00 0x40 0x00 0x00 0x00 0x00 0x20 0x00 |
| 23 | Verify The Attribute |
| 24 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${1} |
| 25 | |
| 26 | # Set the dimm3 Present to 0 |
| 27 | Run IPMI Command |
| 28 | ... 0x04 0x30 0xac 0xa9 0xff 0x00 0x00 0x40 0x00 0x00 0x20 0x00 |
| 29 | Verify The Attribute |
| 30 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${0} |
| 31 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 32 | |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 33 | DIMM Functional And Not Functional |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 34 | [Documentation] Verify that the DIMM3 is functional. |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 35 | [Tags] DIMM_Functional_And_Not_Functional |
| 36 | |
| 37 | # Set the dimm3 Functional to 0 |
| 38 | Run IPMI Command |
| 39 | ... 0x04 0x30 0xac 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x20 0x00 |
| 40 | Verify The Attribute |
| 41 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 |
| 42 | ... Functional ${0} |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 43 | # Set the dimm3 Functional to 1 |
| 44 | Run IPMI Command |
| 45 | ... 0x04 0x30 0xac 0x00 0x00 0x00 0x00 0x10 0x00 0x00 0x20 0x00 |
| 46 | Verify The Attribute |
| 47 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 |
| 48 | ... Functional ${1} |
| 49 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 50 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 51 | CPU Present |
| 52 | [Documentation] Verify the IPMI sensor for CPU present. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 53 | [Tags] CPU_Present |
| 54 | [Template] Check Present Bit |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 55 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 56 | # sensor_id component |
| 57 | 0x5a cpu0 |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 58 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 59 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 60 | CPU Not Present |
| 61 | [Documentation] Verify the IPMI sensor for CPU not present. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 62 | [Tags] CPU_Not_Present |
| 63 | [Template] Check Not Present Bit |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 64 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 65 | # sensor_id component |
| 66 | 0x5a cpu0 |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 67 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 68 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 69 | CPU Functional |
| 70 | [Documentation] Verify the IPMI sensor for CPU functional. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 71 | [Tags] CPU_Functional |
| 72 | [Template] Check Functional Bit |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 73 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 74 | # sensor_id component |
| 75 | 0x5a cpu0 |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 76 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 77 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 78 | CPU Not Functional |
| 79 | [Documentation] Verify the IPMI sensor for CPU not functional. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 80 | [Tags] CPU_Not_Functional |
| 81 | [Template] Check Not Functional Bit |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 82 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 83 | # sensor_id component |
| 84 | 0x5a cpu0 |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 85 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 86 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 87 | GPU Present |
| 88 | [Documentation] Verify the IPMI sensor for GPU present. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 89 | [Tags] GPU_Present |
| 90 | [Template] Check Present Bit |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 91 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 92 | # sensor_id component |
| 93 | 0xC5 gv100card0 |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 94 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 95 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 96 | GPU Not Present |
| 97 | [Documentation] Verify the IPMI sensor for GPU not present. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 98 | [Tags] GPU_Not_Present |
| 99 | [Template] Check Not Present Bit |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 100 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 101 | # sensor_id component |
| 102 | 0xC5 gv100card0 |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 103 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 104 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 105 | GPU Functional |
| 106 | [Documentation] Verify the IPMI sensor GPU for functional. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 107 | [Tags] GPU_Functional |
| 108 | [Template] Check Functional Bit |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 109 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 110 | # sensor_id component |
| 111 | 0xC5 gv100card0 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 112 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 113 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 114 | GPU Not Functional |
| 115 | [Documentation] Verify the IPMI sensor GPU for not functional. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 116 | [Tags] GPU_Not_Functional |
| 117 | [Template] Check Not Functional Bit |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 118 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 119 | # sensor_id component |
| 120 | 0xC5 gv100card0 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 121 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 122 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 123 | Core Present |
| 124 | [Documentation] Verify the IPMI sensor for core present. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 125 | [Tags] Core_Present |
| 126 | [Template] Check Present Bit |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 127 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 128 | # sensor_id component |
| 129 | 0x1e cpu0/core4 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 130 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 131 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 132 | Core Not Present |
| 133 | [Documentation] Verify the IPMI sensor for core not present. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 134 | [Tags] Core_Not_Present |
| 135 | [Template] Check Not Present Bit |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 136 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 137 | # sensor_id component |
| 138 | 0x1e cpu0/core4 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 139 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 140 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 141 | Core Functional |
| 142 | [Documentation] Verify the IPMI sensor for core functional. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 143 | [Tags] Core_Functional |
| 144 | [Template] Check Functional Bit |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 145 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 146 | # sensor_id component |
| 147 | 0x1e cpu0/core4 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 148 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 149 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 150 | Core Not Functional |
| 151 | [Documentation] Verify the IPMI sensor for core not functional. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 152 | [Tags] Core_Not_Functional |
| 153 | [Template] Check Not Functional Bit |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 154 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 155 | # sensor_id component |
| 156 | 0x1e cpu0/core4 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 157 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 158 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 159 | # Operating System State Test Cases. |
| 160 | |
| 161 | Set BootProgress To OSStart And Verify |
| 162 | [Documentation] Set BootProgress To OSStart and verify. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 163 | [Tags] Set_BootProgress_To_OSStart_And_Verify |
| 164 | [Template] Check BootProgress |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 165 | |
| 166 | # BootProgressID BootProgress |
| 167 | 0x13 ${OS_BOOT_START} |
| 168 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 169 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 170 | Set OperatingSystemState To CBoot And Verify |
| 171 | [Documentation] Set Operating System State to "CBoot" |
| 172 | ... and verify using REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 173 | [Tags] Set_OperatingSystemState_To_CBoot_And_Verify |
| 174 | [Template] Check OperatingSystemState |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 175 | |
| 176 | # OperatingSystemStateID OperatingSystemState |
| 177 | 0x02 ${OS_BOOT_CBoot} |
| 178 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 179 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 180 | Set OperatingSystemState To PXEBoot And Verify |
| 181 | [Documentation] Set Operating System State to "PXEBoot" |
| 182 | ... and verify using REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 183 | [Tags] Set_OperatingSystemState_To_PXEBoot_And_Verify |
| 184 | [Template] Check OperatingSystemState |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 185 | |
| 186 | # OperatingSystemStateID OperatingSystemState |
| 187 | 0x05 ${OS_BOOT_PXE} |
| 188 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 189 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 190 | Set OperatingSystemState To BootComplete And Verify |
| 191 | [Documentation] Set Operating System State to "BootComplete" |
| 192 | ... and verify using REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 193 | [Tags] Set_OperatingSystemState_To_BootComplete_And_Verify |
| 194 | [Template] Check OperatingSystemState |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 195 | |
| 196 | # OperatingSystemStateID OperatingSystemState |
| 197 | 0x40 ${OS_BOOT_COMPLETE} |
| 198 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 199 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 200 | Set OperatingSystemState To CDROMBoot And Verify |
| 201 | [Documentation] Set Operating System State to "CDROMBoot" |
| 202 | ... and verify using REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 203 | [Tags] Set_OperatingSystemState_To_CDROMBoot_And_Verify |
| 204 | [Template] Check OperatingSystemState |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 205 | |
| 206 | # OperatingSystemStateID OperatingSystemState |
| 207 | 0x10 ${OS_BOOT_CDROM} |
| 208 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 209 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 210 | Set OperatingSystemState To ROMBoot And Verify |
| 211 | [Documentation] Set Operating System State to "ROMBoot" |
| 212 | ... and verify using REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 213 | [Tags] Set_OperatingSystemState_To_ROMBoot_And_Verify |
| 214 | [Template] Check OperatingSystemState |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 215 | |
| 216 | # OperatingSystemStateID OperatingSystemState |
| 217 | 0x20 ${OS_BOOT_ROM} |
| 218 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 219 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 220 | Set OperatingSystemState To DiagBoot And Verify |
| 221 | [Documentation] Set Operating System State to "DiagBoot" |
| 222 | ... and verify using REST. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 223 | [Tags] Set_OperatingSystemState_To_DiagBoot_And_Verify |
| 224 | [Template] Check OperatingSystemState |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 225 | |
| 226 | # OperatingSystemStateID OperatingSystemState |
| 227 | 0x08 ${OS_BOOT_DiagBoot} |
| 228 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 229 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 230 | # Boot Progress Test Cases. |
| 231 | |
| 232 | Set BootProgress To MemoryInit And Verify |
George Keishing | e15ebb9 | 2018-01-29 12:42:46 -0600 | [diff] [blame] | 233 | [Documentation] Set BootProgress to "MemoryInit" and verify. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 234 | [Tags] Set_BootProgress_To_MemoryInit_And_Verify |
| 235 | [Template] Check BootProgress |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 236 | |
| 237 | # BootProgressID BootProgress |
| 238 | 0x01 ${OS_BOOT_MEM} |
| 239 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 240 | |
George Keishing | e15ebb9 | 2018-01-29 12:42:46 -0600 | [diff] [blame] | 241 | Set BootProgress To MotherboardInit And Verify |
| 242 | [Documentation] Set BootProgress to "MotherboardInit" and verify. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 243 | [Tags] Set_BootProgress_To_MotherboardInit_And_Verify |
| 244 | [Template] Check BootProgress |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 245 | |
| 246 | # BootProgressID BootProgress |
| 247 | 0x14 ${OS_BOOT_MOTHERBOARD} |
| 248 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 249 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 250 | Set BootProgress To SecondaryProcInit And Verify |
George Keishing | e15ebb9 | 2018-01-29 12:42:46 -0600 | [diff] [blame] | 251 | [Documentation] Set BootProgress to "SecondaryProcInit" and verify. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 252 | [Tags] Set_BootProgress_To_SecondaryProcInit_And_Verify |
| 253 | [Template] Check BootProgress |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 254 | |
| 255 | # BootProgressID BootProgress |
| 256 | 0x03 ${OS_BOOT_SECPCI} |
| 257 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 258 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 259 | Set BootProgress To PCIinit And Verify |
George Keishing | e15ebb9 | 2018-01-29 12:42:46 -0600 | [diff] [blame] | 260 | [Documentation] Set BootProgress to "PCIinit" and verify. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 261 | [Tags] Set_BootProgress_To_PCIinit_And_Verify |
| 262 | [Template] Check BootProgress |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 263 | |
| 264 | #BootProgressID BootProgress |
| 265 | 0x07 ${OS_BOOT_PCI} |
| 266 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 267 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 268 | Set BootProgress To Unspecified And Verify |
George Keishing | e15ebb9 | 2018-01-29 12:42:46 -0600 | [diff] [blame] | 269 | [Documentation] Set BootProgress to "Unspecified" and verify. |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 270 | [Tags] Set_BootProgress_To_Unspecified_And_Verify |
| 271 | [Template] Check BootProgress |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 272 | |
| 273 | # BootProgressID BootProgress |
| 274 | 0x00 ${OS_BOOT_OFF} |
| 275 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 276 | |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 277 | TPM Enable and Disable |
| 278 | [Documentation] Enable and disable TPM. |
| 279 | [Tags] TPM_Enable_and_Disable |
| 280 | |
| 281 | # Set the TPMEnable to 0 |
| 282 | Run IPMI Command |
| 283 | ... 0x04 0x30 0xD7 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00 |
| 284 | Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${0} |
| 285 | |
| 286 | # Set the TPMEnable to 1 |
| 287 | Run IPMI Command |
| 288 | ... 0x04 0x30 0xD7 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00 |
| 289 | Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${1} |
| 290 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 291 | |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 292 | Autoreboot Enable and Disable |
| 293 | [Documentation] Enable and disable Autoreboot. |
| 294 | [Tags] Autoreboot_Enable_and_Disable |
| 295 | |
| 296 | # Set the TPMEnable to 0 |
| 297 | Run IPMI Command |
| 298 | ... 0x04 0x30 0xDA 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00 |
| 299 | Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${0} |
| 300 | |
| 301 | # Set the TPMEnable to 1 |
| 302 | Run IPMI Command |
| 303 | ... 0x04 0x30 0xDA 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00 |
| 304 | Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${1} |
| 305 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 306 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 307 | Verify IPMI BT Capabilities Command |
| 308 | [Documentation] Verify IPMI BT capability command response. |
| 309 | [Tags] Verify_IPMI_BT_Capabilities_Command |
George Keishing | b8fac4f | 2018-07-19 10:52:02 -0500 | [diff] [blame] | 310 | [Setup] Run Keywords REST Hard Power Off AND REST Power On |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 311 | |
| 312 | ${output} = Run IPMI command 0x06 0x36 |
| 313 | Should Be True "${output}" == " 01 3f 3f 0a 01" |
| 314 | ... msg=Incorrect Output. |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 315 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 316 | |
George Keishing | e07bc88 | 2018-04-02 13:22:24 -0500 | [diff] [blame] | 317 | OCC Active Disable And Enable |
| 318 | [Documentation] OCC active disable and enable. |
| 319 | [Tags] OCC_Active_Disable_And_Enable |
| 320 | |
| 321 | REST Power On stack_mode=skip quiet=1 |
| 322 | |
| 323 | # Set the OccActive to 0 |
| 324 | Run IPMI Command |
| 325 | ... 0x04 0x30 0x08 0xa8 0x00 0x01 0x00 0x02 0x00 0x00 0x00 0x00 |
| 326 | Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${0} |
| 327 | |
| 328 | # Set the OccActive to 1 |
| 329 | Run IPMI Command |
| 330 | ... 0x04 0x30 0x08 0xa8 0x00 0x02 0x00 0x01 0x00 0x00 0x00 0x00 |
| 331 | Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${1} |
| 332 | |
| 333 | |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 334 | *** Keywords *** |
| 335 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 336 | Check Present Bit |
| 337 | [Documentation] Set the present field to 1 and verify. |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 338 | [Arguments] ${sensor_id} ${component} |
| 339 | |
| 340 | # Description of argument(s): |
| 341 | # sensor_id Corresponding to OperatingSystemState. |
| 342 | # component Component name. |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 343 | |
| 344 | Run IPMI Command |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 345 | ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x80 0x00 0x00 0x00 0x00 0x20 0x00 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 346 | Verify The Attribute |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 347 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component} |
| 348 | ... Present ${1} |
| 349 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 350 | |
| 351 | Check Not Present Bit |
| 352 | [Documentation] Set the present field to 1 and verify. |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 353 | [Arguments] ${sensor_id} ${component} |
| 354 | |
| 355 | # Description of argument(s): |
| 356 | # sensor_id Corresponding to OperatingSystemState. |
| 357 | # component Component name. |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 358 | |
| 359 | Run IPMI Command |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 360 | ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x00 0x00 0x80 0x00 0x00 0x20 0x00 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 361 | Verify The Attribute |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 362 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component} |
| 363 | ... Present ${0} |
| 364 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 365 | |
| 366 | Check Functional Bit |
| 367 | [Documentation] Set the functional to 1 and verify. |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 368 | [Arguments] ${sensor_id} ${component} |
| 369 | |
| 370 | # Description of argument(s): |
| 371 | # sensor_id Corresponding to OperatingSystemState. |
| 372 | # component Component name. |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 373 | |
| 374 | Run IPMI Command |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 375 | ... 0x04 0x30 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x20 0x00 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 376 | Verify The Attribute |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 377 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component} |
| 378 | ... Functional ${1} |
| 379 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 380 | |
| 381 | Check Not Functional Bit |
| 382 | [Documentation] Set the functional to 0 and verify. |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 383 | [Arguments] ${sensor_id} ${component} |
| 384 | |
| 385 | # Description of argument(s): |
| 386 | # sensor_id Corresponding to OperatingSystemState. |
| 387 | # component Component name. |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 388 | |
| 389 | Run IPMI Command |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 390 | ... 0x04 0x30 ${sensor_id} 0xa9 0xff 0x00 0x01 0x00 0x00 0x00 0x20 0x00 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 391 | Verify The Attribute |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 392 | ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component} |
| 393 | ... Functional ${0} |
| 394 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 395 | |
| 396 | Check OperatingSystemState |
| 397 | [Documentation] Set OperatingSystemState and verify. |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 398 | [Arguments] ${sensor_id} ${OperatingSystemState} |
| 399 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 400 | # Description of argument(s): |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 401 | # sensor_id Corresponding to OperatingSystemState. |
| 402 | # OperatingSystemState OperatingSystemState to be set. |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 403 | |
| 404 | Run IPMI Command |
| 405 | ... 0x04 0x30 0x05 0xa9 0x00 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x00 |
| 406 | ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 OperatingSystemState |
| 407 | Should Be Equal ${OperatingSystemState} ${resp} |
| 408 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 409 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 410 | Check BootProgress |
| 411 | [Documentation] Set the Bootprogress and verify. |
| 412 | [Arguments] ${BootProgressID} ${BootProgress} |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 413 | |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 414 | # Description of argument(s): |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 415 | # BootProgressID Corresponding to BootProgress. |
| 416 | # BootProgress BootProgress to be set. |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 417 | |
| 418 | Run IPMI Command |
George Keishing | c49b319 | 2018-02-09 02:00:35 -0600 | [diff] [blame] | 419 | ... 0x04 0x30 0x03 0xa8 0x00 0x04 0x00 0x00 0x00 0x00 ${BootProgressID} 0x00 |
Sweta Potthuri | 09a3cf9 | 2017-12-08 01:19:53 -0600 | [diff] [blame] | 420 | ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 BootProgress |
| 421 | Should Be Equal ${BootProgress} ${resp} |
| 422 | |
Steven Sombar | 5bc33d6 | 2018-02-01 06:57:21 -0600 | [diff] [blame] | 423 | |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 424 | Test Teardown Execution |
| 425 | [Documentation] Do the post test teardown. |
| 426 | ... 1. Capture FFDC on test failure. |
| 427 | ... 2. Close all open SSH connections. |
| 428 | |
| 429 | FFDC On Test Case Fail |
Sweta Potthuri | 4a55602 | 2017-11-24 04:03:37 -0600 | [diff] [blame] | 430 | |