ipatest: loginscreen: do not use hardcoded password

Use admin password obtained from local config instead of hardcoded
value, as the password may differ in different testing environments.

https://pagure.io/freeipa/issue/9226

Signed-off-by: Michal Polovka <mpolovka@redhat.com>
Reviewed-By: Erik Belko <ebelko@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Michal Polovka
2023-04-18 13:48:47 +02:00
committed by Florence Blanc-Renaud
parent 4f9e6b1bed
commit ba845b237f
2 changed files with 1 additions and 2 deletions

View File

@@ -9,7 +9,6 @@ PASSWD_ITEST_USER = '12345678'
PASSWD_ITEST_USER_NEW = '87654321'
ROOT_PKEY = 'root'
PASSWD_ADMIN = 'Secret.123'
# used for add/delete fixture test user
DATA_ITEST_USER = {

View File

@@ -412,6 +412,6 @@ class TestLoginScreen(UI_driver):
"""
self.load()
assert self.login_screen_visible()
self.login(loginscreen.ROOT_PKEY, loginscreen.PASSWD_ADMIN)
self.login(loginscreen.ROOT_PKEY, self.config['ipa_password'])
assert self.logged_in()