Test to verify UpdateService supports TransferProtocol TFTP
Change-Id: Ib20d63168b04dfb20a7c12a460e4d93967aa1056
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/update_service/test_firmware_inventory.robot b/redfish/update_service/test_firmware_inventory.robot
index 3a3c0a7..165d9cf 100644
--- a/redfish/update_service/test_firmware_inventory.robot
+++ b/redfish/update_service/test_firmware_inventory.robot
@@ -4,6 +4,7 @@
Resource ../../lib/resource.robot
Resource ../../lib/bmc_redfish_resource.robot
Resource ../../lib/openbmc_ffdc.robot
+Library ../../lib/gen_robot_valid.py
Test Setup Test Setup Execution
Test Teardown Test Teardown Execution
@@ -104,6 +105,26 @@
... BMC version not there in Firmware Inventory
+Verify UpdateService Supports TransferProtocol TFTP
+ [Documentation] Verify update service supported values have TFTP protocol.
+ [Tags] Verify_UpdateService_Supports_TransferProtocol_TFTP
+
+ # Example:
+ # "Actions": {
+ # "#UpdateService.SimpleUpdate": {
+ # "TransferProtocol@Redfish.AllowableValues": [
+ # "TFTP"
+ # ],
+ # "target": "/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate"
+ # }
+ # },
+
+ ${allowable_values}= Redfish.Get Attribute /redfish/v1/UpdateService Actions
+
+ Rvalid Value allowable_values["#UpdateService.SimpleUpdate"]["TransferProtocol@Redfish.AllowableValues"][0] valid_values=['TFTP']
+ Rvalid Value allowable_values["#UpdateService.SimpleUpdate"]["target"] valid_values=['/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate']
+
+
*** Keywords ***
Test Setup Execution