Enable validate_certs test for kubernetes (#298)

Fixes: #24
This commit is contained in:
Abhijeet Kasurde
2020-11-11 00:44:54 +05:30
committed by GitHub
parent e2d4cff952
commit 66494890ba

View File

@@ -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: