Clean up .robot files
- Run rflint on .robot to ensure they conform to the standards.
Fix the files that don't.
- Add robot_custom_rules.py file for our repository custom rules.
- run pycodestyle on new changes.
Change-Id: Idb2b895b81cb00220076a32b413e124980f4057b
Signed-off-by: Joy Onyerikwu <onyekachukwu.joy.onyerikwu@ibm.com>
diff --git a/redfish/__init__.robot b/redfish/__init__.robot
index eee33ba..ecadea3 100644
--- a/redfish/__init__.robot
+++ b/redfish/__init__.robot
@@ -13,5 +13,3 @@
Run Keyword And Ignore Error Get BMC PNOR Version
# Run Keyword Check BMC Performance
Check BMC Performance
-
-
diff --git a/redfish/account_service/test_user_account.robot b/redfish/account_service/test_user_account.robot
index bec75dd..427f4ec 100644
--- a/redfish/account_service/test_user_account.robot
+++ b/redfish/account_service/test_user_account.robot
@@ -169,8 +169,9 @@
Redfish Create User admin_user TestPwd123 Administrator ${True}
- Redfish.Patch ${REDFISH_ACCOUNTS_SERVICE_URI}
- ... body={'AccountLockoutThreshold': ${account_lockout_threshold}, 'AccountLockoutDuration': ${account_lockout_duration}}
+ ${payload}= Create Dictionary AccountLockoutThreshold=${account_lockout_threshold}
+ ... AccountLockoutDuration=${account_lockout_duration}
+ Redfish.Patch ${REDFISH_ACCOUNTS_SERVICE_URI} body=${payload}
# Make ${account_lockout_threshold} failed login attempts.
Repeat Keyword ${account_lockout_threshold} times
diff --git a/redfish/managers/test_managers_bmc_time.robot b/redfish/managers/test_managers_bmc_time.robot
index 2e6409c..1278255 100644
--- a/redfish/managers/test_managers_bmc_time.robot
+++ b/redfish/managers/test_managers_bmc_time.robot
@@ -169,5 +169,3 @@
Printn
Redfish.Login
-
-