From ca3cf244fd570a93e14f54278a1750f8140c8a07 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 17 Mar 2020 19:54:43 -0400 Subject: [PATCH] Replace verify_ssl test that did not work right --- .../targets/tower_organization/tasks/main.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/awx_collection/tests/integration/targets/tower_organization/tasks/main.yml b/awx_collection/tests/integration/targets/tower_organization/tasks/main.yml index b7e16935ef..57bb33ae78 100644 --- a/awx_collection/tests/integration/targets/tower_organization/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_organization/tasks/main.yml @@ -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