Skip to content

Commit

Permalink
Add functionality to prepare boxes for functional testing
Browse files Browse the repository at this point in the history
Typically these actions were done manually but lets get our good old
friend ansible to run them for us (at least under the upgrade env).
  • Loading branch information
msheiny committed Aug 17, 2018
1 parent 779d61e commit b6755fe
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions molecule/upgrade/side_effect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,21 @@
roles:
- role: app-test
tags: app-test

tasks:
- name: Reset database
command: ./manage.py reset
args:
chdir: /var/www/securedrop

- name: Slap in latest create-dev-data script
copy:
src: ../../securedrop/create-dev-data.py
dest: /var/www/securedrop/create-dev-data.py
mode: 0555

- name: Insert journalist test user
command: /var/www/securedrop/create-dev-data.py --staging
args:
chdir: /var/www/securedrop
become: yes

0 comments on commit b6755fe

Please sign in to comment.