blob: 2c747d9884b5501f867e300806a171befbf0945d [file] [log] [blame]
Sridevi Rameshfe52e402020-02-05 00:15:24 -06001*** Settings ***
2
3Documentation Module to test PLDM FRU (Field Replaceable Unit) commands.
4
5Library ../lib/pldm_utils.py
6Variables ../data/pldm_variables.py
7Resource ../lib/openbmc_ffdc.robot
8
9Test Setup Printn
10Test Teardown FFDC On Test Case Fail
11
12*** Test Cases ***
13
14Verify GetFruRecordTableMetadata
George Keishingc7ff1cd2020-02-27 07:04:58 -060015 [Documentation] Verify get fru record table meta data response message.
Sridevi Rameshfe52e402020-02-05 00:15:24 -060016 [Tags] Verify_GetFruRecordTableMetadata
17
18 # pldm_output:
Sridevi Rameshfe52e402020-02-05 00:15:24 -060019 # [frudatamajorversion]: 1
Sridevi Rameshfe52e402020-02-05 00:15:24 -060020 # [frudataminorversion]: 0
Sridevi Rameshfe52e402020-02-05 00:15:24 -060021 # [frutablemaximumsize]: 4294967295
Sridevi Ramesh8bb2f5e2020-02-27 07:19:39 -060022 # [frutablelength]: 60
23 # [total_number_of_record_set_identifiers_in_table]: 1
24 # [total_number_of_records_in_table]: 1
Sridevi Rameshfe52e402020-02-05 00:15:24 -060025
26 ${pldm_output}= Pldmtool fru GetFruRecordTableMetadata
27 Rprint Vars pldm_output
Sridevi Ramesh8bb2f5e2020-02-27 07:19:39 -060028
29 Valid Value pldm_output['frudatamajorversion'] ['1']
30 Valid Value pldm_output['frudataminorversion'] ['0']
31 Valid Value pldm_output['frutablemaximumsize'] ['4294967295']
32 Valid Range ${pldm_output['frutablelength']} 1
33 Valid Range ${pldm_output['total_number_of_records_in_table']} 1
34 Valid Range ${pldm_output['total_number_of_record_set_identifiers_in_table']} 1