Skip to content

Commit

Permalink
Add very basic smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
steventrouble committed Nov 13, 2023
1 parent 8ffe384 commit f531772
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ansible/install-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
mode: 0664
notify:
- restart tomcat

# configure tomcat startup properties
# change restarts tomcat
# - name: tomcat startup params
Expand All @@ -50,7 +50,7 @@
notify: restart apache

# copy the attributes data file
# until this is in the database
# until this is in the database
- name: copy attribute data
copy: "src=../attribute.xml dest={{ spreg_root }}/attribute.xml group=iam-dev mode=664"
notify: restart tomcat
Expand All @@ -75,9 +75,18 @@
- name: copy xmlsectool
synchronize: "src=../xmlsectool dest={{ spreg_root }} "

# run any handlers
# run any handlers
- meta: flush_handlers

# Do a basic smoke test
- name: smoke test (fetch url)
uri:
url: https://iam-tools-test.u.washington.edu/spreg/
method: GET
return_content: true
register: this
failed_when: this is failed or "'Login with your UW NetID' not in this.content"

# handlers mostly standard from iam-ansible

handlers:
Expand Down

0 comments on commit f531772

Please sign in to comment.