Test stub status on default http vhost
parent
d4f9b6f710
commit
3231e58bc0
|
@ -129,6 +129,11 @@
|
||||||
- 'return 403;'
|
- 'return 403;'
|
||||||
'/gunther':
|
'/gunther':
|
||||||
- 'return 404;'
|
- 'return 404;'
|
||||||
|
'/status':
|
||||||
|
- 'stub_status on;'
|
||||||
|
- 'access_log off;'
|
||||||
|
- 'allow 127.0.0.1;'
|
||||||
|
- 'deny all;'
|
||||||
- name: 'test-htpasswd.local'
|
- name: 'test-htpasswd.local'
|
||||||
template: '_base'
|
template: '_base'
|
||||||
location:
|
location:
|
||||||
|
@ -326,3 +331,10 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: notdefaultssl
|
register: notdefaultssl
|
||||||
failed_when: notdefaultssl.stderr.find('X-ansible-default') != -1
|
failed_when: notdefaultssl.stderr.find('X-ansible-default') != -1
|
||||||
|
- name: -- VERIFY DEFAULT VHOST + STUB_STATUS --
|
||||||
|
command: "curl -v http://127.0.0.1/status"
|
||||||
|
changed_when: false
|
||||||
|
register: vdefault_status
|
||||||
|
failed_when: >
|
||||||
|
vdefault_status.stderr.find('X-ansible-default') == -1 or
|
||||||
|
vdefault_status.stdout.find('Active connections') == -1
|
||||||
|
|
Loading…
Reference in New Issue