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/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