1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-30 17:33:07 +00:00

Be a bit more defensive when setting admin pw in zezere server

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-03-29 15:45:17 -07:00
parent 9251ac21fa
commit 6ae2e05484

View File

@ -24,11 +24,11 @@ sub run {
assert_script_run 'zezere-manage createsuperuser --username admin --email zezere@test.openqa.fedoraproject.org --no-input'; assert_script_run 'zezere-manage createsuperuser --username admin --email zezere@test.openqa.fedoraproject.org --no-input';
# set admin password (can't find a non-interactive way sadly) # set admin password (can't find a non-interactive way sadly)
type_string "zezere-manage changepassword admin\n"; type_string "zezere-manage changepassword admin\n";
sleep 2; wait_still_screen 5;
type_string "weakpassword\n"; type_string "weakpassword\n";
sleep 2; wait_still_screen 5;
type_string "weakpassword\n"; type_string "weakpassword\n";
sleep 2; wait_still_screen 5;
# check DB exists # check DB exists
assert_script_run "ls -l /var/local/zezere.sqlite3"; assert_script_run "ls -l /var/local/zezere.sqlite3";
# start server # start server