Sridevi Ramesh | fe52e40 | 2020-02-05 00:15:24 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Module to test PLDM platform commands. |
| 4 | |
| 5 | Library ../lib/pldm_utils.py |
| 6 | Variables ../data/pldm_variables.py |
| 7 | Resource ../lib/openbmc_ffdc.robot |
| 8 | |
| 9 | Test Setup Printn |
| 10 | Test Teardown FFDC On Test Case Fail |
| 11 | |
| 12 | *** Test Cases *** |
| 13 | |
| 14 | Verify GetPDR |
| 15 | [Documentation] Verify GetPDR (Platform Descpritor Record) response message. |
| 16 | [Tags] Verify_GetPDR |
| 17 | [Template] Verify GetPDR For Record Handle |
| 18 | |
| 19 | # RecordHandle |
| 20 | '0' |
| 21 | '1' |
| 22 | '2' |
| 23 | |
| 24 | |
| 25 | Verify SetStateEffecterStates |
| 26 | [Documentation] Verify set state effecter states response message. |
| 27 | [Tags] Verify_SetStateEffecterStates |
| 28 | [Template] Verify SetStateEffecterStates For Effecter States |
| 29 | |
| 30 | # EffecterStates (effecterID requestSet effecterState) |
| 31 | '1 1 1' |
| 32 | '1 1 2' |
| 33 | |
| 34 | *** Keywords *** |
| 35 | |
| 36 | Verify GetPDR For Record Handle |
| 37 | [Documentation] Verify GetPDR (Platform Descpritor Record) for given input record handle. |
| 38 | [Arguments] ${record_handle} |
| 39 | |
| 40 | # Description of argument(s): |
| 41 | # ${record_handle} Record handle (e.g. '1'). |
| 42 | |
| 43 | # pldm_output: |
| 44 | # [responseCount]: 29 |
| 45 | # [recordHandle]: 1 |
| 46 | # [PDRHeaderVersion]: 1 |
| 47 | # [PDRType]: 11 |
| 48 | # [recordChangeNumber]: 0 |
| 49 | # [dataLength]: 19 |
| 50 | # [PLDMTerminusHandle]: 0 |
| 51 | # [effecterID]: 1 |
| 52 | # [entityType]: 33 |
| 53 | # [entityInstanceNumber]: 0 |
| 54 | # [containerID]: 0 |
| 55 | # [effecterSemanticID]: 0 |
| 56 | # [effecterInit]: 0 |
| 57 | # [effecterDescriptionPDR]: false |
| 58 | # [compositeEffecterCount]: 1 |
| 59 | # [stateSetID]: 196 |
| 60 | # [possibleStatesSize]: 1 |
| 61 | # [possibleStates]: 6 |
| 62 | |
| 63 | ${pldm_cmd}= Evaluate $CMD_GETPDR % ${record_handle} |
| 64 | ${pldm_output}= Pldmtool ${pldm_cmd} |
| 65 | Rprint Vars pldm_output |
| 66 | Valid Dict pldm_output valid_values=${RESPONSE_DICT_GETPDR} |
| 67 | |
| 68 | |
| 69 | Verify SetStateEffecterStates For Effecter States |
| 70 | [Documentation] Verify set state effecter states for given input effecter states. |
| 71 | [Arguments] ${effecter_states} |
| 72 | |
| 73 | # Description of argument(s): |
| 74 | # ${effecter_states} (effecterID requestSet effecterState). |
| 75 | # e.g. '1 1 1'. |
| 76 | |
| 77 | # Example output: |
| 78 | # SetStateEffecterStates ]: SUCCESS |
| 79 | |
| 80 | ${pldm_cmd}= Evaluate $CMD_SETSTATEEFFECTERSTATES % ${effecter_states} |
| 81 | ${pldm_output}= Pldmtool ${pldm_cmd} |
| 82 | Rprint Vars pldm_output |
| 83 | Valid Value pldm_output['setstateeffecterstates'] ['SUCCESS'] |