diff options
author | Matt Clay <mclay@redhat.com> | 2020-02-13 16:22:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 16:22:24 -0800 |
commit | 227f498314eb5d0189fa6fb128825c859ce38739 (patch) | |
tree | d79d0b9a41cd3c70f812c63b319f61a77d7719f8 /test/integration/targets/tower_organization | |
parent | 8fc3dfca32f70f6440a2cdf90dd9badcc5a1dd48 (diff) | |
download | ansible-227f498314eb5d0189fa6fb128825c859ce38739.tar.gz |
stable-2.9: Restore Tower integration tests. (#67395)
* Move tower_common tests with tower_organization.
(cherry picked from commit c92697aceccc9d849affcc2ab2f849c96974a7aa)
* Test: Bump TOWER_VERSION to supported version (#67378)
* Revert "Remove Tower module tests from CI. (#67368)"
This reverts commit b041d9676246f2aa8258c078d673cb9bb39044b8.
* Test: Bump TOWER_VERSION to 3.6.2
(cherry picked from commit b9bd2c25ca97ce647885f07b1d7596f75eb7d701)
Co-authored-by: Yanis Guenane <yguenane@gmail.com>
Diffstat (limited to 'test/integration/targets/tower_organization')
-rw-r--r-- | test/integration/targets/tower_organization/aliases | 2 | ||||
-rw-r--r-- | test/integration/targets/tower_organization/tasks/main.yml | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/test/integration/targets/tower_organization/aliases b/test/integration/targets/tower_organization/aliases index 350a041042..229eebe6c9 100644 --- a/test/integration/targets/tower_organization/aliases +++ b/test/integration/targets/tower_organization/aliases @@ -1,2 +1,2 @@ cloud/tower -unsupported +shippable/tower/group1 diff --git a/test/integration/targets/tower_organization/tasks/main.yml b/test/integration/targets/tower_organization/tasks/main.yml index 76fa99bbb1..bd28bf8616 100644 --- a/test/integration/targets/tower_organization/tasks/main.yml +++ b/test/integration/targets/tower_organization/tasks/main.yml @@ -11,3 +11,34 @@ - name: Make sure the default Default organization exists tower_organization: name: Default + +- 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: 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 + +- 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 |