Fix for Flood PUT method without auth token
Changes:
- Modified "Login And Upload Partition File To BMC" keyword
- Modified "Delete All BMC Partition File" keyword
Tested:
- Ran Successfully test_bmc_connections.robot
Change-Id: Ib68108f99099a966299f836cde60d5ad30c3a148
Signed-off-by: Megha G N <Megha.G.N@ibm.com>
diff --git a/security/test_bmc_connections.robot b/security/test_bmc_connections.robot
index 80009a2..ca07e42 100644
--- a/security/test_bmc_connections.robot
+++ b/security/test_bmc_connections.robot
@@ -303,7 +303,6 @@
Login And Create User
[Documentation] Login and create user
-
[Teardown] Run Keywords Redfish.Delete /redfish/v1/AccountService/Accounts/test_user
... AND Redfish.Logout
@@ -317,7 +316,6 @@
Login And Delete User
[Documentation] Login create and delete user
-
[Teardown] Redfish.Logout
Redfish.Login
@@ -331,7 +329,6 @@
Set Account Lockout Threshold
[Documentation] Set user account lockout threshold.
-
[Teardown] Redfish.Logout
Redfish.Login
@@ -397,7 +394,7 @@
${kwargs}= Create Dictionary data=${image_data}
Set To Dictionary ${kwargs} headers ${headers}
- ${resp}= Put Request openbmc ${OEM_HOST_CONFIG_URI}/100-file &{kwargs} timeout=10
+ ${resp}= PUT On Session openbmc ${OEM_HOST_CONFIG_URI}/100-file &{kwargs} timeout=10
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
Delete Local Partition File
@@ -427,7 +424,7 @@
${headers}= Create Dictionary X-Auth-Token=${XAUTH_TOKEN}
Set To Dictionary ${data} headers ${headers}
- ${resp}= Put Request openbmc ${OEM_HOST_CONFIG_URI}.DeleteAll &{data}
+ ${resp}= POST On Session openbmc ${OEM_HOST_CONFIG_ACTIONS_URI}.DeleteAll &{data}
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
Delete All Sessions