mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
461 B
YAML
18 lines
461 B
YAML
6 years ago
|
- k8s:
|
||
|
definition:
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: hello
|
||
|
namespace: default
|
||
|
validate:
|
||
|
fail_on_error: yes
|
||
|
ignore_errors: yes
|
||
|
register: k8s_no_validate
|
||
|
|
||
|
- name: assert that k8s_no_validate fails gracefully
|
||
|
assert:
|
||
|
that:
|
||
|
- k8s_no_validate is failed
|
||
|
- "k8s_no_validate.msg == 'kubernetes-validate python library is required to validate resources'"
|