diff --git a/tests/config/test_config.yml b/tests/config/test_config.yml index 01c1913f7192500a9498e6b62f695d7b433224c6..c3f26872f01a2efef8b63e2a2a4ec13b422f7f25 100644 --- a/tests/config/test_config.yml +++ b/tests/config/test_config.yml @@ -15,7 +15,8 @@ ipaapi_context: "{{ ipa_context | default(omit) }}" register: previousconfig - - debug: + - name: Display current configuration. + debug: var: previousconfig # setup environment. @@ -478,7 +479,8 @@ ca_renewal_master_server: '{{ previousconfig.config.ca_renewal_master_server | default(omit) }}' register: result - - debug: + - name: "CA-Renewal server warning." + debug: msg: "Due to a test failure, IPA CA-Renewal Server might not be correctly be set. Check your configuration." always: diff --git a/tests/host/test_host_random.yml b/tests/host/test_host_random.yml index 4a2b3a1e4231dc0c0825cbabf439e16e8573e9e6..8b9a2c081741a98ec45a81f5a0ad7ebbaec03edb 100644 --- a/tests/host/test_host_random.yml +++ b/tests/host/test_host_random.yml @@ -33,7 +33,8 @@ register: ipahost failed_when: not ipahost.changed or ipahost.failed - - assert: + - name: Assert ipahost.host.randompassword is defined. + assert: that: - ipahost.host.randompassword is defined @@ -62,7 +63,8 @@ register: ipahost failed_when: not ipahost.changed or ipahost.failed - - assert: + - name: Assert randompassword is defined for host1 and host2. + assert: that: - ipahost.host["{{ host1_fqdn }}"].randompassword is defined @@ -87,7 +89,8 @@ register: ipahost failed_when: ipahost.changed or not ipahost.failed - - assert: + - name: Assert randompassword is not defined for 'ansible_fqdn'. + assert: that: - ipahost.host["{{ ansible_facts['fqdn'] }}"].randompassword is not defined diff --git a/tests/pytests/dnszone/playbooks/dnszone_add_multiple_ipv4_ipv6_forwarders.yaml b/tests/pytests/dnszone/playbooks/dnszone_add_multiple_ipv4_ipv6_forwarders.yaml index 6f42ded5bc08728f7727f9f40a5bea89e00da039..3607d4404c75888fe56faafb66e11947404b09aa 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_add_multiple_ipv4_ipv6_forwarders.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_add_multiple_ipv4_ipv6_forwarders.yaml @@ -3,7 +3,8 @@ hosts: ipaserver tasks: - - ipadnszone: + - name: Ensure DNS zone is present with multiple forwarders + ipadnszone: ipaadmin_password: SomeADMINpassword name: 04testzone.test forwarders: diff --git a/tests/pytests/dnszone/playbooks/dnszone_add_without_forwarder.yaml b/tests/pytests/dnszone/playbooks/dnszone_add_without_forwarder.yaml index d6ad54de68aad763a772abf9d97f6689a1dc327f..2446c57669fec6b77c40bb05be142d7a79e61efd 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_add_without_forwarder.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_add_without_forwarder.yaml @@ -3,7 +3,8 @@ hosts: ipaserver tasks: - - ipadnszone: + - name: Ensure DNS zone is present without forwarders + ipadnszone: ipaadmin_password: SomeADMINpassword name: 01testzone.test forwarders: [] diff --git a/tests/pytests/dnszone/playbooks/dnszone_del_multiple.yaml b/tests/pytests/dnszone/playbooks/dnszone_del_multiple.yaml index 2b631e1d95901b0d930eea1dce78ea4cefe5fbbe..0de57cc9ae3b8fc7a0f2c55f8ac51c1d99db4531 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_del_multiple.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_del_multiple.yaml @@ -4,7 +4,8 @@ become: true tasks: - - ipadnszone: + - name: Ensure multiple DNS are absent + ipadnszone: ipaadmin_password: SomeADMINpassword name: delzone1.com,delzone2.com,delzone3.com state: absent diff --git a/tests/pytests/dnszone/playbooks/dnszone_disable.yaml b/tests/pytests/dnszone/playbooks/dnszone_disable.yaml index c10a249730e388148f10a2974eace76d7c7c4e12..a97674a2194dce80ab08589792c999b838cb451c 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_disable.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_disable.yaml @@ -3,7 +3,8 @@ hosts: ipaserver tasks: - - ipadnszone: + - name: Ensure DNS zone is disabled + ipadnszone: ipaadmin_password: SomeADMINpassword name: 26testzone.test state: disabled diff --git a/tests/pytests/dnszone/playbooks/dnszone_enable.yaml b/tests/pytests/dnszone/playbooks/dnszone_enable.yaml index 47783a54ff9c533a1ec60703434a0d05ee4f597d..8f6a3a98c7c55de4568740c1ff45da80c86b6508 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_enable.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_enable.yaml @@ -3,7 +3,8 @@ hosts: ipaserver tasks: - - ipadnszone: + - name: Ensure DNS zone is enabled + ipadnszone: ipaadmin_password: SomeADMINpassword name: 26testzone.test state: enabled diff --git a/tests/pytests/dnszone/playbooks/dnszone_invalid_ip.yaml b/tests/pytests/dnszone/playbooks/dnszone_invalid_ip.yaml index 59142bfdbf49462da0d90cfe78df5926e78524c3..d16cff7594913b834843f641b88e31a4beff49df 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_invalid_ip.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_invalid_ip.yaml @@ -4,7 +4,8 @@ become: true tasks: - - ipadnszone: + - name: Test adding a DNS zone with an invalid forwarder + ipadnszone: ipaadmin_password: SomeADMINpassword name: invalidzone.test forwarders: diff --git a/tests/pytests/dnszone/playbooks/dnszone_invalid_serial.yaml b/tests/pytests/dnszone/playbooks/dnszone_invalid_serial.yaml index 32c87695ff808dda8c566ddd9f0f9e13c3ba2003..1611035a60edb0a0f950db72266d45fc5c1051be 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_invalid_serial.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_invalid_serial.yaml @@ -4,7 +4,8 @@ become: true tasks: - - ipadnszone: + - name: Test adding a DNS zone with an invalid serial + ipadnszone: ipaadmin_password: SomeADMINpassword name: invalidserialzone.test serial: 429496729599 diff --git a/tests/pytests/dnszone/playbooks/dnszone_name_from_ip.yaml b/tests/pytests/dnszone/playbooks/dnszone_name_from_ip.yaml index df8498a67cfaf5c7d632be0da431418b387a08af..c8fb026e85cd2b6228a7c8d7ff8065410ee59183 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_name_from_ip.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_name_from_ip.yaml @@ -3,6 +3,7 @@ hosts: ipaserver tasks: - - ipadnszone: + - name: Ensure a reverse DNS Zone with name inferred form an IP address + ipadnszone: ipaadmin_password: SomeADMINpassword name_from_ip: 192.8.2.0/22 diff --git a/tests/pytests/dnszone/playbooks/dnszone_with_forward_policy_only.yaml b/tests/pytests/dnszone/playbooks/dnszone_with_forward_policy_only.yaml index d71c3904ea81a879cfc1f502c6e802247773ef16..a32d0bb59d1521b28fe924007c04a8247a6bed7c 100644 --- a/tests/pytests/dnszone/playbooks/dnszone_with_forward_policy_only.yaml +++ b/tests/pytests/dnszone/playbooks/dnszone_with_forward_policy_only.yaml @@ -3,7 +3,8 @@ hosts: ipaserver tasks: - - ipadnszone: + - name: Ensure DNS Zone is present with forward policy `only` + ipadnszone: ipaadmin_password: SomeADMINpassword name: 26testzone.test forward_policy: only diff --git a/tests/user/test_users_present_slice.yml b/tests/user/test_users_present_slice.yml index 90f08c5c072700fd41b86f9b602788a1b27ba9ee..6824ada2c0cd3c41dd7dc2915d9f3e12f9c038fe 100644 --- a/tests/user/test_users_present_slice.yml +++ b/tests/user/test_users_present_slice.yml @@ -13,7 +13,8 @@ - name: Include users.json include_vars: file: users.json - - debug: + - name: Size of users slice. + debug: msg: "{{ users | length }}" - name: Users present ipauser: