From 7eb7529be9c43e9a1ff69bf1dd974ed3b123241e Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 17 Aug 2017 18:29:49 -0400 Subject: Bug 1388148 - Test password quality checking code --- .circleci/checksetup_answers.txt | 4 +++- .circleci/config.yml | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 2 deletions(-) (limited to '.circleci') diff --git a/.circleci/checksetup_answers.txt b/.circleci/checksetup_answers.txt index 80a1d40d2..bcdefa38e 100644 --- a/.circleci/checksetup_answers.txt +++ b/.circleci/checksetup_answers.txt @@ -1,11 +1,13 @@ $answer{'ADMIN_EMAIL'} = 'admin@mozilla.bugs'; $answer{'ADMIN_OK'} = 'Y'; -$answer{'ADMIN_PASSWORD'} = 'password'; +$answer{'ADMIN_PASSWORD'} = 'passWord1234!'; $answer{'ADMIN_REALNAME'} = 'QA Admin'; $answer{'NO_PAUSE'} = 1; $answer{'bugzilla_version'} = '1'; $answer{'create_htaccess'} = '1'; $answer{'cvsbin'} = '/usr/bin/cvs'; +$answer{'password_complexity'} = 'bmo'; $answer{'diffpath'} = '/usr/bin'; $answer{'interdiffbin'} = '/usr/bin/interdiff'; $answer{'urlbase'} = 'http://<>:8000/'; +$answer{'mail_delivery_method'} = 'Test'; diff --git a/.circleci/config.yml b/.circleci/config.yml index 619f1cb11..cd2ec0e10 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -120,13 +120,48 @@ jobs: - store_artifacts: path: /app/artifacts + test_bmo: + parallelism: 4 + working_directory: /app + docker: + - <<: *bmo_slim_image + environment: + <<: *bmo_env + BZ_QA_ANSWERS_FILE: /app/.circleci/checksetup_answers.txt + TWD_HOST: localhost + TWD_PORT: 4444 + TWD_BROWSER: firefox + - <<: *mysql_image + environment: *mysql_env + - image: memcached:latest + - image: selenium/standalone-firefox:2.53.1 + steps: + - checkout + - run: | + mv /opt/bmo/local /app/local + perl checksetup.pl --no-database --default-localconfig + perl -MSys::Hostname -i -pE 's/<>/hostname()/ges' $BZ_QA_ANSWERS_FILE + rm -f /app/localconfig + /app/scripts/entrypoint.pl load_test_data + mkdir artifacts + - run: | + BZ_BASE_URL="http://$(hostname):$PORT" + export BZ_BASE_URL + rm -f /app/localconfig + /app/scripts/entrypoint.pl test_bmo -q -f t/bmo/*.t + + + workflows: version: 2 tests: jobs: + - test_bmo - test_sanity - test_webservices - - test_selenium + - test_selenium: + requires: + - test_bmo - build: requires: - test_sanity -- cgit v1.2.3-24-g4f1b