mirror of https://github.com/ansible/ansible.git
stable-2.9: Restore Tower integration tests. (#67395)
* Move tower_common tests with tower_organization. (cherry picked from commitpull/67413/headc92697acec
) * Test: Bump TOWER_VERSION to supported version (#67378) * Revert "Remove Tower module tests from CI. (#67368)" This reverts commitb041d96762
. * Test: Bump TOWER_VERSION to 3.6.2 (cherry picked from commitb9bd2c25ca
) Co-authored-by: Yanis Guenane <yguenane@gmail.com>
parent
8fc3dfca32
commit
227f498314
@ -1,2 +0,0 @@
|
|||||||
cloud/tower
|
|
||||||
unsupported
|
|
@ -1,47 +0,0 @@
|
|||||||
# Test behaviour common to all tower modules
|
|
||||||
- name: Check that SSL is available
|
|
||||||
tower_organization:
|
|
||||||
name: Default
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- name: Check we haven't changed anything
|
|
||||||
assert:
|
|
||||||
that: result is not changed
|
|
||||||
|
|
||||||
- name: Check that SSL is available and verify_ssl is enabled (task must fail)
|
|
||||||
tower_organization:
|
|
||||||
name: Default
|
|
||||||
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
|
|
||||||
- >
|
|
||||||
'Could not establish a secure connection' in (check_ssl_is_used.module_stderr + check_ssl_is_used.module_stdout)
|
|
||||||
or 'OpenSSL.SSL.Error' in (check_ssl_is_used.module_stderr + check_ssl_is_used.module_stdout)
|
|
||||||
# 'Could not establish a secure connection': when pyOpenSSL isn't available
|
|
||||||
# 'OpenSSL.SSL.Error': with pyOpenSSL, see https://github.com/urllib3/urllib3/pull/1517
|
|
||||||
|
|
||||||
- name: Disable verify_ssl in ~/.tower_cli.cfg
|
|
||||||
copy:
|
|
||||||
dest: ~/.tower_cli.cfg
|
|
||||||
content: |
|
|
||||||
[general]
|
|
||||||
verify_ssl = False
|
|
||||||
force: false # ensure remote file doesn't exist
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Check that verify_ssl is disabled (task must not fail)
|
|
||||||
tower_organization:
|
|
||||||
name: Default
|
|
||||||
environment:
|
|
||||||
TOWER_CERTIFICATE: /dev/null # should not fail because verify_ssl is disabled
|
|
||||||
always:
|
|
||||||
- name: Delete ~/.tower_cli.cfg
|
|
||||||
file:
|
|
||||||
path: ~/.tower_cli.cfg
|
|
||||||
state: absent
|
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cloud/tower
|
cloud/tower
|
||||||
unsupported
|
shippable/tower/group1
|
||||||
|
Loading…
Reference in New Issue