Add TC for pldmtool GetFileTable command
Changes:
Added new test case for pldmtool GetFileTable command
Tested:
Tested changes on BMC environment
Change-Id: Ic013791eae0caf0a629c2c6c46e1934ebfc74d3c
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/pldm/test_pldm_oem.robot b/pldm/test_pldm_oem.robot
index 913a8ad..5a40c2e 100644
--- a/pldm/test_pldm_oem.robot
+++ b/pldm/test_pldm_oem.robot
@@ -22,3 +22,22 @@
Valid Value pldm_output['rack entry'] ['0xff000030']
Valid Value pldm_output['pri cec node'] ['0x00008030']
+
+Verify GetFileTable
+ [Documentation] Verify GetFileTable response message.
+ [Tags] Verify_GetFileTable
+
+ ${pldm_output}= Pldmtool oem-ibm GetFileTable
+
+ # Example output
+ # [{
+ # "FileHandle": "0",
+ # "FileNameLength": 7,
+ # "FileName": "abcdxxx",
+ # "FileSize": 28672,
+ # "FileTraits": 1
+ # }]
+
+ Should Be Equal ${pldm_output[0]["FileHandle"]} 0
+ ${output_length}= Get Length ${pldm_output}
+ Should Be True ${output_length}>${1}