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