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