Merge "fix mixed up molecule tests" into stable/train
This commit is contained in:
commit
8fbd2867fe
|
@ -17,36 +17,10 @@
|
||||||
|
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
vars:
|
gather_facts: false
|
||||||
ipa_bin: echo
|
|
||||||
kinit_bin: echo
|
|
||||||
kdestroy_bin: echo
|
|
||||||
tls_everywhere_undercloud_fqdn: "undercloud.example.com"
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Run ipa_server_check validation
|
- name: Warn developers about the lack of molecule testing
|
||||||
block:
|
|
||||||
- name: run validation
|
|
||||||
include_role:
|
|
||||||
name: tls_everywhere
|
|
||||||
tasks_from: ipa-server-check
|
|
||||||
rescue:
|
|
||||||
- name: clear errors
|
|
||||||
meta: clear_host_errors
|
|
||||||
|
|
||||||
- name: check command outputs
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- tls_everywhere_aci_check_kinit_output == "host/undercloud.example.com -k -t /etc/krb5.keytab"
|
|
||||||
- tls_everywhere_aci_check_dns_record_show_output == "dnsrecord-show example.com freeipa-0"
|
|
||||||
- tls_everywhere_aci_check_service_show_output == "service-show nova/undercloud.example.com --all --raw"
|
|
||||||
- ipa_server_aci_check_kdestroy_output == "-A"
|
|
||||||
- ipa_server_aci_check_failures|length == 1
|
|
||||||
- '"Modify Realm Domains" in ipa_server_aci_check_failures[0]'
|
|
||||||
|
|
||||||
- name: End play
|
|
||||||
meta: end_play
|
|
||||||
|
|
||||||
- name: Fail the test
|
|
||||||
fail:
|
fail:
|
||||||
msg: |
|
msg: >-
|
||||||
The ipa-server-check validation didn't fail as expected
|
This role needs molecule tests!
|
||||||
|
|
|
@ -17,10 +17,36 @@
|
||||||
|
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
vars:
|
||||||
|
ipa_bin: echo
|
||||||
|
kinit_bin: echo
|
||||||
|
kdestroy_bin: echo
|
||||||
|
tls_everywhere_undercloud_fqdn: "undercloud.example.com"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Warn developers about the lack of molecule testing
|
- name: Run ipa_server_check validation
|
||||||
|
block:
|
||||||
|
- name: run validation
|
||||||
|
include_role:
|
||||||
|
name: tls_everywhere
|
||||||
|
tasks_from: ipa-server-check
|
||||||
|
rescue:
|
||||||
|
- name: clear errors
|
||||||
|
meta: clear_host_errors
|
||||||
|
|
||||||
|
- name: check command outputs
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- tls_everywhere_aci_check_kinit_output == "host/undercloud.example.com -k -t /etc/krb5.keytab"
|
||||||
|
- tls_everywhere_aci_check_dns_record_show_output == "dnsrecord-show example.com freeipa-0"
|
||||||
|
- tls_everywhere_aci_check_service_show_output == "service-show nova/undercloud.example.com --all --raw"
|
||||||
|
- ipa_server_aci_check_kdestroy_output == "-A"
|
||||||
|
- ipa_server_aci_check_failures|length == 1
|
||||||
|
- '"Modify Realm Domains" in ipa_server_aci_check_failures[0]'
|
||||||
|
|
||||||
|
- name: End play
|
||||||
|
meta: end_play
|
||||||
|
|
||||||
|
- name: Fail the test
|
||||||
fail:
|
fail:
|
||||||
msg: >-
|
msg: |
|
||||||
This role needs molecule tests!
|
The ipa-server-check validation didn't fail as expected
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
- tripleo-validations-centos-8-molecule-rabbitmq_limits
|
- tripleo-validations-centos-8-molecule-rabbitmq_limits
|
||||||
- tripleo-validations-centos-8-molecule-repos
|
- tripleo-validations-centos-8-molecule-repos
|
||||||
- tripleo-validations-centos-8-molecule-stonith_exists
|
- tripleo-validations-centos-8-molecule-stonith_exists
|
||||||
|
- tripleo-validations-centos-8-molecule-tls_everywhere
|
||||||
- tripleo-validations-centos-8-molecule-undercloud_cpu
|
- tripleo-validations-centos-8-molecule-undercloud_cpu
|
||||||
- tripleo-validations-centos-8-molecule-undercloud_debug
|
- tripleo-validations-centos-8-molecule-undercloud_debug
|
||||||
- tripleo-validations-centos-8-molecule-undercloud_disk_space
|
- tripleo-validations-centos-8-molecule-undercloud_disk_space
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
- tripleo-validations-centos-8-molecule-rabbitmq_limits
|
- tripleo-validations-centos-8-molecule-rabbitmq_limits
|
||||||
- tripleo-validations-centos-8-molecule-repos
|
- tripleo-validations-centos-8-molecule-repos
|
||||||
- tripleo-validations-centos-8-molecule-stonith_exists
|
- tripleo-validations-centos-8-molecule-stonith_exists
|
||||||
|
- tripleo-validations-centos-8-molecule-tls_everywhere
|
||||||
- tripleo-validations-centos-8-molecule-undercloud_cpu
|
- tripleo-validations-centos-8-molecule-undercloud_cpu
|
||||||
- tripleo-validations-centos-8-molecule-undercloud_debug
|
- tripleo-validations-centos-8-molecule-undercloud_debug
|
||||||
- tripleo-validations-centos-8-molecule-undercloud_disk_space
|
- tripleo-validations-centos-8-molecule-undercloud_disk_space
|
||||||
|
|
Loading…
Reference in New Issue