diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-08-18 00:29:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 00:29:49 +0200 |
commit | 7eb7529be9c43e9a1ff69bf1dd974ed3b123241e (patch) | |
tree | 88acc9f77ae1fc1cdb4c9cce1635878d9e45623c /.circleci | |
parent | 5c849ad08765322010064f482fd2dea11482c114 (diff) | |
download | bugzilla-7eb7529be9c43e9a1ff69bf1dd974ed3b123241e.tar.gz bugzilla-7eb7529be9c43e9a1ff69bf1dd974ed3b123241e.tar.xz |
Bug 1388148 - Test password quality checking code
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/checksetup_answers.txt | 4 | ||||
-rw-r--r-- | .circleci/config.yml | 37 |
2 files changed, 39 insertions, 2 deletions
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://<<HOSTNAME>>: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>>/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 |