From 0e11119f4ede80afc089bb277b37f2e190ade1aa Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Thu, 20 May 2021 12:04:42 +0200 Subject: [PATCH] test_dnsrecord.yml: Add failed_when test for A rec with reverse, NS record The test to make sure that the task set the changed flag and did not fail was missing. Also the repeated task to make sure that the task did not set the change flag. --- tests/dnsrecord/test_dnsrecord.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/dnsrecord/test_dnsrecord.yml b/tests/dnsrecord/test_dnsrecord.yml index 05379ce4..215bd62f 100644 --- a/tests/dnsrecord/test_dnsrecord.yml +++ b/tests/dnsrecord/test_dnsrecord.yml @@ -432,6 +432,18 @@ name: host04 ip_address: "{{ ipv4_prefix }}.114" reverse: yes + register: result + failed_when: not result.changed or result.failed + + - name: Ensure that 'host04' has a A record with reverse, for NS record, again. + ipadnsrecord: + ipaadmin_password: SomeADMINpassword + zone_name: "{{ testzone }}" + name: host04 + ip_address: "{{ ipv4_prefix }}.114" + reverse: yes + register: result + failed_when: result.changed or result.failed - name: Ensure that 'host04' has NS record. ipadnsrecord: