From e9adcde4648b54db8d40f314ca938dca5080bb9c Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 15 Sep 2017 14:30:40 -0400 Subject: Bug 1391702 - Replace Bugzilla::User::validate_password() with calls to Data::Password::passwdqc --- qa/t/test_user_groups.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'qa/t/test_user_groups.t') diff --git a/qa/t/test_user_groups.t b/qa/t/test_user_groups.t index 89fc2fd6d..0798a1b80 100644 --- a/qa/t/test_user_groups.t +++ b/qa/t/test_user_groups.t @@ -12,6 +12,7 @@ use lib qw(lib ../../lib ../../local/lib/perl5); use Test::More "no_plan"; use QA::Util; +use constant PASSWORD => 'uChoopoh1che'; my ($sel, $config) = get_selenium(); @@ -67,7 +68,7 @@ $sel->wait_for_page_to_load_ok(WAIT_TIME); $sel->title_is('Add user'); $sel->type_ok('login', 'master@selenium.bugzilla.org'); $sel->type_ok('name', 'master-user'); -$sel->type_ok('password', 'selenium', 'Enter password'); +$sel->type_ok('password', PASSWORD, 'Enter password'); $sel->type_ok('disabledtext', 'Not for common usage'); $sel->click_ok('add'); $sel->wait_for_page_to_load_ok(WAIT_TIME); @@ -83,7 +84,7 @@ $sel->wait_for_page_to_load_ok(WAIT_TIME); $sel->title_is('Add user'); $sel->type_ok('login', 'slave@selenium.bugzilla.org'); $sel->type_ok('name', 'slave-user'); -$sel->type_ok('password', 'selenium', 'Enter password'); +$sel->type_ok('password', PASSWORD, 'Enter password'); $sel->type_ok('disabledtext', 'Not for common usage'); $sel->click_ok('add'); $sel->wait_for_page_to_load_ok(WAIT_TIME); @@ -99,7 +100,7 @@ $sel->wait_for_page_to_load_ok(WAIT_TIME); $sel->title_is('Add user'); $sel->type_ok('login', 'reg@selenium.bugzilla.org'); $sel->type_ok('name', 'reg-user'); -$sel->type_ok('password', 'selenium', 'Enter password'); +$sel->type_ok('password', PASSWORD, 'Enter password'); $sel->type_ok('disabledtext', 'Not for common usage'); $sel->click_ok('add'); $sel->wait_for_page_to_load_ok(WAIT_TIME); -- cgit v1.2.3-24-g4f1b