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