1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 05:25:29 +03:00

Replace verify_ssl test that did not work right

This commit is contained in:
AlanCoding 2020-03-17 19:54:43 -04:00
parent cbc52fa19f
commit ca3cf244fd
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -80,31 +80,19 @@
- "result is not changed"
# Test behaviour common to all tower modules
- name: Check that SSL is available
tower_organization:
name: Default
register: result
- assert:
that: result is not changed
- name: Check that SSL is available and verify_ssl is enabled (task must fail)
tower_organization:
name: Default
validate_certs: true
environment:
TOWER_CERTIFICATE: /dev/null # force check failure
ignore_errors: true
register: check_ssl_is_used
- name: Check that connection failed
assert:
that:
- check_ssl_is_used is failed
- "'CERTIFICATE_VERIFY_FAILED' in check_ssl_is_used['msg']"
- name: Check that verify_ssl is disabled (task must not fail)
tower_organization:
name: Default
validate_certs: false
environment:
TOWER_CERTIFICATE: /dev/null # should not fail because verify_ssl is disabled