Automation code to upload and delete partition files in loop
changes:
- Added test case "Redfish Upload And Delete Same Partition
File To BMC In Loop"
- Added keyword "Redfish Upload And Delete Partition File In Loop"
Change-Id: I52bde6cd4658758645ce9bfa0c67b01954ddc183
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/openpower/ext_interfaces/test_savearea_management.robot b/openpower/ext_interfaces/test_savearea_management.robot
index 37b1ef6..d365740 100644
--- a/openpower/ext_interfaces/test_savearea_management.robot
+++ b/openpower/ext_interfaces/test_savearea_management.robot
@@ -70,6 +70,15 @@
500KB_file
+Redfish Upload And Delete Same Partition File To BMC In Loop
+ [Documentation] Upload same partition file to BMC using redfish in loop.
+ [Tags] Redfish_Upload_And_Delete_Same_Partition_File_To_BMC_In_Loop
+ [Template] Redfish Upload And Delete Partition File In Loop
+
+ # file_name
+ 500KB_file
+
+
Redfish Partition File Upload Post BMC Reboot
[Documentation] Upload partition file to BMC using redfish, after the BMC reboot.
[Tags] Redfish_Partition_File_Upload_Post_BMC_Reboot
@@ -408,6 +417,18 @@
Delete Local Partition File ${Partition_file_list}
+Redfish Upload And Delete Partition File In Loop
+ [Documentation] Upload the same partition file multiple times in loop to BMC.
+ [Arguments] ${file_name}
+
+ # Description of argument(s):
+ # file_name Partition file name.
+
+ FOR ${count} IN RANGE 1 11
+ Redfish Upload Partition File ${file_name}
+ END
+
+
Verify Partition File Upload Post BMC Reboot
[Documentation] Upload the partition file, after BMC reboot.
[Arguments] ${file_name}