Skip to content

Commit

Permalink
test dist install
Browse files Browse the repository at this point in the history
  • Loading branch information
alf-cactus committed Apr 18, 2024
1 parent cffa949 commit bc88218
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions roles/finalize/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,8 @@
name: "{{ webserver_package_name }}"
state: restarted
become: true

##################
#TASK [finalize : restart apache without maintenance site] **********************
#fatal: [ui-srv]: FAILED! => changed=false
# msg: 'Could not find the requested service apache2: host'
17 changes: 14 additions & 3 deletions roles/test/tasks/test-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,22 @@
delay: 5 # Every 5 seconds
when: "'middlewareserver' in group_names"

- debug:
var: web_call_result
when: "'middlewareserver' in group_names"

- name: show middleware webserver test results
fail:
msg: "url: {{ item.url }}, status: {{ item.status }}"
loop: "{{ web_call_result.results | from_yaml | list }}"
when: 'middlewareserver' in group_names and item.status!=200
when: "'middlewareserver' in group_names and item.status!=200"

##############################
#TASK [test : show middleware webserver test results] ***************************
#fatal: [localhost]: FAILED! =>
# msg: '''dict object'' has no attribute ''results''. ''dict object'' has no attribute ''results'''



- name: test api web server availability
uri:
Expand All @@ -52,7 +63,7 @@
fail:
msg: "url: {{ item.url }}, status: {{ item.status }}"
loop: "{{ web_call_result.results | from_yaml | list }}"
when: 'apiserver' in group_names and item.status!=200
when: "'apiserver' in group_names and item.status!=200"

- name: test ui web server availability
uri:
Expand All @@ -75,4 +86,4 @@
fail:
msg: "url: {{ item.url }}, status: {{ item.status }}"
loop: "{{ web_call_result.results | from_yaml | list }}"
when: 'frontends' in group_names and item.status!=200
when: "'frontends' in group_names and item.status!=200"

0 comments on commit bc88218

Please sign in to comment.