PLDM: Automate Test Scenarios for pldm commands
- Verify GetPDR
- Verify SetStateEffecterStates
- Verify GetTID
- Verify GetBIOSTable For StringTable
- Verify GetFruRecordTableMetadata
Note: Ouput for GetBIOSTable type stringtable is dynamic
will submit the verification part in the next commit.
Change-Id: I422c2df4485ac25d6ff4183bd51b5ddc6c3bf3cc
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/pldm/test_pldm_fru.robot b/pldm/test_pldm_fru.robot
new file mode 100644
index 0000000..00a0fc3
--- /dev/null
+++ b/pldm/test_pldm_fru.robot
@@ -0,0 +1,28 @@
+*** Settings ***
+
+Documentation Module to test PLDM FRU (Field Replaceable Unit) commands.
+
+Library ../lib/pldm_utils.py
+Variables ../data/pldm_variables.py
+Resource ../lib/openbmc_ffdc.robot
+
+Test Setup Printn
+Test Teardown FFDC On Test Case Fail
+
+*** Test Cases ***
+
+Verify GetFruRecordTableMetadata
+ [Documentation] Verify get fru record table meta data reponse message.
+ [Tags] Verify_GetFruRecordTableMetadata
+
+ # pldm_output:
+ # [frutablelength]: 60
+ # [frudatamajorversion]: 1
+ # [total_number_of_record_set_identifiers_in_table]: 1
+ # [frudataminorversion]: 0
+ # [total_number_of_records_in_table]: 1
+ # [frutablemaximumsize]: 4294967295
+
+ ${pldm_output}= Pldmtool fru GetFruRecordTableMetadata
+ Rprint Vars pldm_output
+ Valid Dict pldm_output valid_values=${RESPONSE_DICT_GETFRURECORDTABLEMETADATA}