Consolidate username and password in test
Changes:
- Remove REST_USERNAME and REST_PASSWORD. Legacy username
and password, default user OPENBMC_USERNAME and
OPENBMC_PASSWORD.
Tested:
- Boot test and sanity runs from sandbox
Change-Id: I86955d512530889c1a875b5efcc71f9df99432d9
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/rest_client.robot b/lib/rest_client.robot
index 2ebbd14..8d5792e 100644
--- a/lib/rest_client.robot
+++ b/lib/rest_client.robot
@@ -131,8 +131,8 @@
Initialize OpenBMC
[Documentation] Do a REST login connection within specified time.
[Arguments] ${timeout}=20 ${quiet}=${1}
- ... ${rest_username}=${REST_USERNAME}
- ... ${rest_password}=${REST_PASSWORD}
+ ... ${rest_username}=${OPENBMC_USERNAME}
+ ... ${rest_password}=${OPENBMC_PASSWORD}
# Description of argument(s):
# timeout REST login attempt time out.
@@ -153,8 +153,8 @@
BMC Web Login Request
[Documentation] Do BMC web-based login.
- [Arguments] ${timeout}=20 ${rest_username}=${REST_USERNAME}
- ... ${rest_password}=${REST_PASSWORD}
+ [Arguments] ${timeout}=20 ${rest_username}=${OPENBMC_USERNAME}
+ ... ${rest_password}=${OPENBMC_PASSWORD}
# Description of argument(s):
# timeout REST login attempt time out.
@@ -182,8 +182,8 @@
Post Login Request
[Documentation] Do REST login request.
[Arguments] ${timeout}=20 ${quiet}=${1}
- ... ${rest_username}=${REST_USERNAME}
- ... ${rest_password}=${REST_PASSWORD}
+ ... ${rest_username}=${OPENBMC_USERNAME}
+ ... ${rest_password}=${OPENBMC_PASSWORD}
# Description of argument(s):
# timeout REST login attempt time out.
@@ -377,8 +377,8 @@
Redfish Login
[Documentation] Do BMC web-based login.
- [Arguments] ${timeout}=20 ${rest_username}=${REST_USERNAME}
- ... ${rest_password}=${REST_PASSWORD} ${kwargs}=${EMPTY}
+ [Arguments] ${timeout}=20 ${rest_username}=${OPENBMC_USERNAME}
+ ... ${rest_password}=${OPENBMC_PASSWORD} ${kwargs}=${EMPTY}
# Description of argument(s):
# timeout REST login attempt time out.