From 5540a586dc5945e36fc17b388ac9084fe5cfa254 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Wed, 23 May 2018 15:33:58 -0400 Subject: [PATCH] test tower-cli verify_ssl config parameter (#37597) --- .../targets/tower_user/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/integration/targets/tower_user/tasks/main.yml b/test/integration/targets/tower_user/tasks/main.yml index 05d231eb4b..4920120ead 100644 --- a/test/integration/targets/tower_user/tasks/main.yml +++ b/test/integration/targets/tower_user/tasks/main.yml @@ -74,3 +74,20 @@ - assert: that: - "result is changed" + +- name: Test tower SSL parameter + tower_user: + first_name: Joe + last_name: User + username: joe + password: "{{ 65535 | random | to_uuid }}" + email: joe@example.org + state: present + tower_verify_ssl: true + tower_host: http://foo.invalid + ignore_errors: true + register: result + +- assert: + that: + - "'not verify ssl with non-https protocol' in result.exception"