From 66494890bace3af317a02b7fe46a2e09ea6e8c1a Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 11 Nov 2020 00:44:54 +0530 Subject: [PATCH] Enable validate_certs test for kubernetes (#298) Fixes: #24 --- molecule/default/tasks/full.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/molecule/default/tasks/full.yml b/molecule/default/tasks/full.yml index d2666797..283fe6d0 100644 --- a/molecule/default/tasks/full.yml +++ b/molecule/default/tasks/full.yml @@ -10,19 +10,19 @@ debug: var: output - # TODO: See https://github.com/ansible-collections/community.kubernetes/issues/24 - # - name: Setting validate_certs to true causes a failure - # k8s: - # name: testing - # kind: Namespace - # validate_certs: yes - # ignore_errors: yes - # register: output - # - # - name: assert that validate_certs caused a failure (and therefore was correctly translated to verify_ssl) - # assert: - # that: - # - output is failed + - name: Setting validate_certs to true causes a failure + k8s: + name: testing + kind: Namespace + validate_certs: yes + ca_cert: /dev/null # invalid CA certificate + ignore_errors: yes + register: output + + - name: assert that validate_certs caused a failure (and therefore was correctly translated to verify_ssl) + assert: + that: + - output is failed - name: Ensure k8s_info works with empty resources k8s_info: