Merge pull request #6323 from AlanCoding/rm_verify_ssl_test

Replace verify_ssl test that did not work right

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-03-18 19:33:24 +00:00 committed by GitHub
commit d0a3c5a42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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