summaryrefslogtreecommitdiffstats
path: root/ansible_collections/infoblox/nios_modules/tests/integration
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/infoblox/nios_modules/tests/integration
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/infoblox/nios_modules/tests/integration')
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/nios_a_record_idempotence.yml77
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/nios_aaaa_record_idempotence.yml77
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/nios_cname_record_idempotence.yml77
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/nios_dns_view_idempotence.yml58
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/nios_host_record_idempotence.yml126
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/nios_mx_record_idempotence.yml84
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/nios_naptr_record_idempotence.yml91
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/defaults/main.yaml0
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/nios_network_idempotence.yml80
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/nios_network_view_idempotence.yml58
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/nios_ptr_record_idempotence.yml83
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/nios_srv_record_idempotence.yml98
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/nios_txt_record_idempotence.yml82
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/aliases3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/defaults/main.yaml3
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/meta/main.yaml2
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/nios_zone_idempotence.yml68
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/main.yml1
-rw-r--r--ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/prepare_nios_tests_idempotence.yml2
67 files changed, 1176 insertions, 0 deletions
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/defaults/main.yaml
new file mode 100644
index 000000000..9ef5ba516
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: []
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/meta/main.yaml
new file mode 100644
index 000000000..1b01a972f
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/main.yml
new file mode 100644
index 000000000..b3fa8014d
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_a_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/nios_a_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/nios_a_record_idempotence.yml
new file mode 100644
index 000000000..0bbf106ce
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_a_record/tasks/nios_a_record_idempotence.yml
@@ -0,0 +1,77 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup a_record
+ nios_a_record:
+ name: a.ansible.com
+ ipv4: 192.168.10.1
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create an a_record
+ nios_a_record:
+ name: a.ansible.com
+ ipv4: 192.168.10.1
+ state: present
+ provider: "{{ nios_provider }}"
+ register: a_record_create1
+
+- name: recreate an a_record
+ nios_a_record:
+ name: a.ansible.com
+ ipv4: 192.168.10.1
+ state: present
+ provider: "{{ nios_provider }}"
+ register: a_record_create2
+
+- name: add a comment to an existing a_record
+ nios_a_record:
+ name: a.ansible.com
+ ipv4: 192.168.10.1
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: a_record_update1
+
+- name: add a comment to an existing a_record
+ nios_a_record:
+ name: a.ansible.com
+ ipv4: 192.168.10.1
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: a_record_update2
+
+- name: remove a a_record from the system
+ nios_a_record:
+ name: a.ansible.com
+ ipv4: 192.168.10.1
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: a_record_delete1
+
+- name: remove a a_record from the system
+ nios_a_record:
+ name: a.ansible.com
+ ipv4: 192.168.10.1
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: a_record_delete2
+
+- assert:
+ that:
+ - "a_record_create1.changed"
+ - "not a_record_create2.changed"
+ - "a_record_update1.changed"
+ - "not a_record_update2.changed"
+ - "a_record_delete1.changed"
+ - "not a_record_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/defaults/main.yaml
new file mode 100644
index 000000000..9ef5ba516
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: []
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/meta/main.yaml
new file mode 100644
index 000000000..1b01a972f
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/main.yml
new file mode 100644
index 000000000..2fec2adb2
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_aaaa_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/nios_aaaa_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/nios_aaaa_record_idempotence.yml
new file mode 100644
index 000000000..2df01d34b
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_aaaa_record/tasks/nios_aaaa_record_idempotence.yml
@@ -0,0 +1,77 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup aaaa record
+ nios_aaaa_record:
+ name: aaaa.ansible.com
+ ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create an aaaa record
+ nios_aaaa_record:
+ name: aaaa.ansible.com
+ ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ state: present
+ provider: "{{ nios_provider }}"
+ register: aaaa_record_create1
+
+- name: recreate an aaaa record
+ nios_aaaa_record:
+ name: aaaa.ansible.com
+ ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ state: present
+ provider: "{{ nios_provider }}"
+ register: aaaa_record_create2
+
+- name: add a comment to an existing aaaa record
+ nios_aaaa_record:
+ name: aaaa.ansible.com
+ ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: aaaa_record_update1
+
+- name: add a comment to an existing aaaa record
+ nios_aaaa_record:
+ name: aaaa.ansible.com
+ ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: aaaa_record_update2
+
+- name: remove a aaaa record from the system
+ nios_aaaa_record:
+ name: aaaa.ansible.com
+ ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: aaaa_record_delete1
+
+- name: remove a aaaa record from the system
+ nios_aaaa_record:
+ name: aaaa.ansible.com
+ ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: aaaa_record_delete2
+
+- assert:
+ that:
+ - "aaaa_record_create1.changed"
+ - "not aaaa_record_create2.changed"
+ - "aaaa_record_update1.changed"
+ - "not aaaa_record_update2.changed"
+ - "aaaa_record_delete1.changed"
+ - "not aaaa_record_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/defaults/main.yaml
new file mode 100644
index 000000000..9ef5ba516
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: []
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/meta/main.yaml
new file mode 100644
index 000000000..1b01a972f
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/main.yml
new file mode 100644
index 000000000..b30f250a5
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_cname_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/nios_cname_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/nios_cname_record_idempotence.yml
new file mode 100644
index 000000000..f450c7166
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_cname_record/tasks/nios_cname_record_idempotence.yml
@@ -0,0 +1,77 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup cname record
+ nios_cname_record:
+ name: cname.ansible.com
+ canonical: realhost.ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create an cname record
+ nios_cname_record:
+ name: cname.ansible.com
+ canonical: realhost.ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+ register: cname_record_create1
+
+- name: recreate an cname record
+ nios_cname_record:
+ name: cname.ansible.com
+ canonical: realhost.ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+ register: cname_record_create2
+
+- name: add a comment to an existing cname record
+ nios_cname_record:
+ name: cname.ansible.com
+ canonical: realhost.ansible.com
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: cname_record_update1
+
+- name: add a comment to an existing cname record
+ nios_cname_record:
+ name: cname.ansible.com
+ canonical: realhost.ansible.com
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: cname_record_update2
+
+- name: remove a cname record from the system
+ nios_cname_record:
+ name: cname.ansible.com
+ canonical: realhost.ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: cname_record_delete1
+
+- name: remove a cname record from the system
+ nios_cname_record:
+ name: cname.ansible.com
+ canonical: realhost.ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: cname_record_delete2
+
+- assert:
+ that:
+ - "cname_record_create1.changed"
+ - "not cname_record_create2.changed"
+ - "cname_record_update1.changed"
+ - "not cname_record_update2.changed"
+ - "cname_record_delete1.changed"
+ - "not cname_record_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/defaults/main.yaml
new file mode 100644
index 000000000..ebf6ffc90
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: [] \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/meta/main.yaml
new file mode 100644
index 000000000..9472935b7
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/main.yml
new file mode 100644
index 000000000..1eb9c07ab
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_dns_view_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/nios_dns_view_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/nios_dns_view_idempotence.yml
new file mode 100644
index 000000000..b9dc9fec4
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_dns_view/tasks/nios_dns_view_idempotence.yml
@@ -0,0 +1,58 @@
+- name: delete dns view instance
+ nios_dns_view:
+ name: ansible-dns
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: configure a new dns view instance
+ nios_dns_view:
+ name: ansible-dns
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_dns_create1
+
+- name: configure a new dns view instance
+ nios_dns_view:
+ name: ansible-dns
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_dns_create2
+
+- name: update the comment for dns view
+ nios_dns_view:
+ name: ansible-dns
+ comment: this is an example comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_dns_update1
+
+- name: update the comment for dns view
+ nios_dns_view:
+ name: ansible-dns
+ comment: this is an example comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_dns_update2
+
+- name: delete dns view instance
+ nios_dns_view:
+ name: ansible-dns
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: nios_dns_delete1
+
+- name: delete dns view instance
+ nios_dns_view:
+ name: ansible-dns
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: nios_dns_delete2
+
+- assert:
+ that:
+ - "nios_dns_create1.changed"
+ - "not nios_dns_create2.changed"
+ - "nios_dns_update1.changed"
+ - "not nios_dns_update2.changed"
+ - "nios_dns_delete1.changed"
+ - "not nios_dns_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/defaults/main.yaml
new file mode 100644
index 000000000..ebf6ffc90
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: [] \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/meta/main.yaml
new file mode 100644
index 000000000..9472935b7
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/main.yml
new file mode 100644
index 000000000..2f1dcc55e
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_host_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/nios_host_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/nios_host_record_idempotence.yml
new file mode 100644
index 000000000..636431ee5
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_host_record/tasks/nios_host_record_idempotence.yml
@@ -0,0 +1,126 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup ipv4 host record
+ nios_host_record:
+ name: host.ansible.com
+ ipv4:
+ - address: 192.168.10.1
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create an ipv4 host record
+ nios_host_record:
+ name: host.ansible.com
+ ipv4:
+ - address: 192.168.10.1
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_create1
+
+- name: recreate an ipv4 host record
+ nios_host_record:
+ name: host.ansible.com
+ ipv4:
+ - address: 192.168.10.1
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_create2
+
+- name: add a comment to an existing host record
+ nios_host_record:
+ name: host.ansible.com
+ ipv4:
+ - address: 192.168.10.1
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_update1
+
+- name: add a comment to an existing host record
+ nios_host_record:
+ name: host.ansible.com
+ ipv4:
+ - address: 192.168.10.1
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_update2
+
+- name: remove a host record from the system
+ nios_host_record:
+ name: host.ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: ipv4_delete1
+
+- name: remove a host record from the system
+ nios_host_record:
+ name: host.ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: ipv4_delete2
+
+- name: create an ipv4 host record bypassing DNS
+ nios_host_record:
+ name: host
+ ipv4:
+ - address: 192.168.10.1
+ dns: false
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_create3
+
+- name: recreate an ipv4 host record bypassing DNS
+ nios_host_record:
+ name: host
+ ipv4:
+ - address: 192.168.10.1
+ dns: false
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_create4
+
+- name: create an ipv4 host record via DHCP and MAC
+ nios_host_record:
+ name: host
+ ipv4:
+ - address: 192.168.10.1
+ dhcp: true
+ mac: 00-80-C8-E3-4C-BD
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_create5
+
+- name: recreate an ipv4 host record via DHCP and MAC
+ nios_host_record:
+ name: host
+ ipv4:
+ - address: 192.168.10.1
+ dhcp: true
+ mac: 00-80-C8-E3-4C-BD
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_create6
+
+- assert:
+ that:
+ - "ipv4_create1.changed"
+ - "not ipv4_create2.changed"
+ - "ipv4_update1.changed"
+ - "not ipv4_update2.changed"
+ - "ipv4_delete1.changed"
+ - "not ipv4_delete2.changed"
+ - "ipv4_create3.changed"
+ - "not ipv4_create4.changed"
+ - "ipv4_create5.changed"
+ - "not ipv4_create6.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/defaults/main.yaml
new file mode 100644
index 000000000..9ef5ba516
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: []
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/meta/main.yaml
new file mode 100644
index 000000000..1b01a972f
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/main.yml
new file mode 100644
index 000000000..fe687173b
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_mx_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/nios_mx_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/nios_mx_record_idempotence.yml
new file mode 100644
index 000000000..65b1e8f44
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_mx_record/tasks/nios_mx_record_idempotence.yml
@@ -0,0 +1,84 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup mx record
+ nios_mx_record:
+ name: ansible.com
+ mx: mailhost.ansible.com
+ preference: 0
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create an mx record
+ nios_mx_record:
+ name: ansible.com
+ mx: mailhost.ansible.com
+ preference: 0
+ state: present
+ provider: "{{ nios_provider }}"
+ register: mx_record_create1
+
+- name: recreate an mx record
+ nios_mx_record:
+ name: ansible.com
+ mx: mailhost.ansible.com
+ preference: 0
+ state: present
+ provider: "{{ nios_provider }}"
+ register: mx_record_create2
+
+- name: add a comment to an existing mx record
+ nios_mx_record:
+ name: ansible.com
+ mx: mailhost.ansible.com
+ preference: 0
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: mx_record_update1
+
+- name: add a comment to an existing mx record
+ nios_mx_record:
+ name: ansible.com
+ mx: mailhost.ansible.com
+ preference: 0
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: mx_record_update2
+
+- name: remove a mx record from the system
+ nios_mx_record:
+ name: ansible.com
+ mx: mailhost.ansible.com
+ preference: 0
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: mx_record_delete1
+
+- name: remove a mx record from the system
+ nios_mx_record:
+ name: ansible.com
+ mx: mailhost.ansible.com
+ preference: 0
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: mx_record_delete2
+
+- assert:
+ that:
+ - "mx_record_create1.changed"
+ - "not mx_record_create2.changed"
+ - "mx_record_update1.changed"
+ - "not mx_record_update2.changed"
+ - "mx_record_delete1.changed"
+ - "not mx_record_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/defaults/main.yaml
new file mode 100644
index 000000000..9ef5ba516
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: []
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/meta/main.yaml
new file mode 100644
index 000000000..1b01a972f
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/main.yml
new file mode 100644
index 000000000..a22a8018c
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_naptr_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/nios_naptr_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/nios_naptr_record_idempotence.yml
new file mode 100644
index 000000000..2303eff58
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_naptr_record/tasks/nios_naptr_record_idempotence.yml
@@ -0,0 +1,91 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup naptr record
+ nios_naptr_record:
+ name: '*.subscriber-100.ansiblezone.com'
+ order: 1000
+ preference: 10
+ replacement: replacement1.network.ansiblezone.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create an naptr record
+ nios_naptr_record:
+ name: '*.subscriber-100.ansiblezone.com'
+ order: 1000
+ preference: 10
+ replacement: replacement1.network.ansiblezone.com
+ state: present
+ provider: "{{ nios_provider }}"
+ register: naptr_record_create1
+
+- name: recreate an naptr record
+ nios_naptr_record:
+ name: '*.subscriber-100.ansiblezone.com'
+ order: 1000
+ preference: 10
+ replacement: replacement1.network.ansiblezone.com
+ state: present
+ provider: "{{ nios_provider }}"
+ register: naptr_record_create2
+
+- name: add a comment to an existing naptr record
+ nios_naptr_record:
+ name: '*.subscriber-100.ansiblezone.com'
+ order: 1000
+ preference: 10
+ replacement: replacement1.network.ansiblezone.com
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: naptr_record_update1
+
+- name: add a comment to an existing naptr record
+ nios_naptr_record:
+ name: '*.subscriber-100.ansiblezone.com'
+ order: 1000
+ preference: 10
+ replacement: replacement1.network.ansiblezone.com
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: naptr_record_update2
+
+- name: remove a naptr record from the system
+ nios_naptr_record:
+ name: '*.subscriber-100.ansiblezone.com'
+ order: 1000
+ preference: 10
+ replacement: replacement1.network.ansiblezone.com
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: naptr_record_delete1
+
+- name: remove a naptr record from the system
+ nios_naptr_record:
+ name: '*.subscriber-100.ansiblezone.com'
+ order: 1000
+ preference: 10
+ replacement: replacement1.network.ansiblezone.com
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: naptr_record_delete2
+
+- assert:
+ that:
+ - "naptr_record_create1.changed"
+ - "not naptr_record_create2.changed"
+ - "naptr_record_update1.changed"
+ - "not naptr_record_update2.changed"
+ - "naptr_record_delete1.changed"
+ - "not naptr_record_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/defaults/main.yaml
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/defaults/main.yaml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/meta/main.yaml
new file mode 100644
index 000000000..9472935b7
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/main.yml
new file mode 100644
index 000000000..c147af8f4
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_network_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/nios_network_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/nios_network_idempotence.yml
new file mode 100644
index 000000000..3b5dbc4b5
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network/tasks/nios_network_idempotence.yml
@@ -0,0 +1,80 @@
+- name: cleanup a network ipv4
+ nios_network:
+ network: 192.168.10.0/24
+ comment: this is a test comment
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: configure a network ipv4
+ nios_network:
+ network: 192.168.10.0/24
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_ipv4_create1
+
+- name: configure a network ipv4
+ nios_network:
+ network: 192.168.10.0/24
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_ipv4_create2
+
+#- assert:
+# that:
+# - "nios_ipv4_create1.changed"
+# - "not nios_ipv4_create2.changed"
+
+- name: set dhcp options for a network ipv4
+ nios_network:
+ network: 192.168.10.0/24
+ comment: this is a test comment
+ options:
+ - name: domain-name
+ value: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_ipv4_update1
+
+- name: set dhcp options for a network ipv4
+ nios_network:
+ network: 192.168.10.0/24
+ comment: this is a test comment
+ options:
+ - name: domain-name
+ value: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_ipv4_update2
+
+- name: remove a network ipv4
+ nios_network:
+ network: 192.168.10.0/24
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: nios_ipv4_remove1
+
+- name: remove a network ipv4
+ nios_network:
+ network: 192.168.10.0/24
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: nios_ipv4_remove2
+
+- name: configure a network ipv6
+ nios_network:
+ network: fe80::/64
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_ipv6_create1
+
+- assert:
+ that:
+ - "nios_ipv4_create1.changed"
+ - "not nios_ipv4_create2.changed"
+ - "nios_ipv4_update1.changed"
+ - "not nios_ipv4_update2.changed"
+ - "nios_ipv4_remove1.changed"
+ - "not nios_ipv4_remove2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/defaults/main.yaml
new file mode 100644
index 000000000..ebf6ffc90
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: [] \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/meta/main.yaml
new file mode 100644
index 000000000..9472935b7
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/main.yml
new file mode 100644
index 000000000..97e87148b
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_network_view_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/nios_network_view_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/nios_network_view_idempotence.yml
new file mode 100644
index 000000000..ad13e3a33
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_network_view/tasks/nios_network_view_idempotence.yml
@@ -0,0 +1,58 @@
+- name: cleanup a new network view
+ nios_network_view:
+ name: ansible
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: configure a new network view
+ nios_network_view:
+ name: ansible
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_network_view_create1
+
+- name: configure a new network view
+ nios_network_view:
+ name: ansible
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_network_view_create2
+
+- name: update the comment for network view
+ nios_network_view:
+ name: ansible
+ comment: this is an example comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_network_view_update1
+
+- name: update the comment for network view
+ nios_network_view:
+ name: ansible
+ comment: this is an example comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: nios_network_view_update2
+
+- name: remove the network view
+ nios_network_view:
+ name: ansible
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: nios_network_view_delete1
+
+- name: remove the network view
+ nios_network_view:
+ name: ansible
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: nios_network_view_delete2
+
+- assert:
+ that:
+ - "nios_network_view_create1.changed"
+ - "not nios_network_view_create2.changed"
+ - "nios_network_view_update1.changed"
+ - "not nios_network_view_update2.changed"
+ - "nios_network_view_delete1.changed"
+ - "not nios_network_view_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/defaults/main.yaml
new file mode 100644
index 000000000..9ef5ba516
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: []
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/meta/main.yaml
new file mode 100644
index 000000000..1b01a972f
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/main.yml
new file mode 100644
index 000000000..ec33e8f53
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_ptr_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/nios_ptr_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/nios_ptr_record_idempotence.yml
new file mode 100644
index 000000000..a233d80f5
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_ptr_record/tasks/nios_ptr_record_idempotence.yml
@@ -0,0 +1,83 @@
+---
+
+- name: create an ipv4 ptr record
+ nios_ptr_record:
+ name: ptr.ansible.com
+ ptrdname: ptr.ansible.com
+ ipv4: 192.168.10.1
+ state: present
+ provider: "{{ nios_provider }}"
+ view: default
+ register: ipv4_ptr_create1
+
+- name: create the same ipv4 ptr record
+ nios_ptr_record:
+ name: ptr.ansible.com
+ ptrdname: ptr.ansible.com
+ ipv4: 192.168.10.1
+ state: present
+ view: default
+ provider: "{{ nios_provider }}"
+ register: ipv4_ptr_create2
+
+- name: add a comment to an existing ipv4 ptr record
+ nios_ptr_record:
+ name: ptr.ansible.com
+ ptrdname: ptr.ansible.com
+ ipv4: 192.168.10.1
+ comment: this is a test comment
+ view: default
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_ptr_update1
+
+- name: add the same comment to the same ipv4 ptr host record
+ nios_ptr_record:
+ name: ptr.ansible.com
+ ptrdname: ptr.ansible.com
+ ipv4: 192.168.10.1
+ comment: this is a test comment
+ view: default
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv4_ptr_update2
+
+- name: remove a ptr record from the system
+ nios_ptr_record:
+ name: ptr.ansible.com
+ ptrdname: ptr.ansible.com
+ ipv4: 192.168.10.1
+ view: default
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: ipv4_ptr_delete1
+
+- name: remove the same ptr record from the system
+ nios_ptr_record:
+ ptrdname: ptr.ansible.com
+ name: ptr.ansible.com
+ ipv4: 192.168.10.1
+ view: default
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: ipv4_ptr_delete2
+
+- name: create an ipv6 ptr record
+ nios_ptr_record:
+ ptrdname: ptr6.ansible.com
+ name: ptr6.ansible.com
+ ipv6: "2002:8ac3:802d:1242:20d:60ff:fe38:6d16"
+ view: default
+ state: present
+ provider: "{{ nios_provider }}"
+ register: ipv6_ptr_create1
+
+- assert:
+ that:
+ - "ipv4_ptr_create1.changed"
+ - "not ipv4_ptr_create2.changed"
+ - "ipv4_ptr_update1.changed"
+ - "not ipv4_ptr_update2.changed"
+ - "ipv4_ptr_delete1.changed"
+ - "not ipv4_ptr_delete2.changed"
+ - "ipv6_ptr_create1.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/defaults/main.yaml
new file mode 100644
index 000000000..9ef5ba516
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: []
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/meta/main.yaml
new file mode 100644
index 000000000..1b01a972f
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/main.yml
new file mode 100644
index 000000000..1c8476732
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_srv_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/nios_srv_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/nios_srv_record_idempotence.yml
new file mode 100644
index 000000000..8f3dbfc73
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_srv_record/tasks/nios_srv_record_idempotence.yml
@@ -0,0 +1,98 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup srv record
+ nios_srv_record:
+ name: ansible.com
+ port: 5080
+ priority: 10
+ target: service1.ansible.com
+ weight: 10
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create an srv record
+ nios_srv_record:
+ name: ansible.com
+ port: 5080
+ priority: 10
+ target: service1.ansible.com
+ weight: 10
+ state: present
+ provider: "{{ nios_provider }}"
+ register: srv_record_create1
+
+- name: recreate an srv record
+ nios_srv_record:
+ name: ansible.com
+ port: 5080
+ priority: 10
+ target: service1.ansible.com
+ weight: 10
+ state: present
+ provider: "{{ nios_provider }}"
+ register: srv_record_create2
+
+- name: add a comment to an existing srv record
+ nios_srv_record:
+ name: ansible.com
+ port: 5080
+ priority: 10
+ target: service1.ansible.com
+ weight: 10
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: srv_record_update1
+
+- name: add a comment to an existing srv record
+ nios_srv_record:
+ name: ansible.com
+ port: 5080
+ priority: 10
+ target: service1.ansible.com
+ weight: 10
+ comment: this is a test comment
+ state: present
+ provider: "{{ nios_provider }}"
+ register: srv_record_update2
+
+- name: remove a srv record from the system
+ nios_srv_record:
+ name: ansible.com
+ port: 5080
+ priority: 10
+ target: service1.ansible.com
+ weight: 10
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: srv_record_delete1
+
+- name: remove a srv record from the system
+ nios_srv_record:
+ name: ansible.com
+ port: 5080
+ priority: 10
+ target: service1.ansible.com
+ weight: 10
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: srv_record_delete2
+
+- assert:
+ that:
+ - "srv_record_create1.changed"
+ - "not srv_record_create2.changed"
+ - "srv_record_update1.changed"
+ - "not srv_record_update2.changed"
+ - "srv_record_delete1.changed"
+ - "not srv_record_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/defaults/main.yaml
new file mode 100644
index 000000000..ebf6ffc90
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: [] \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/meta/main.yaml
new file mode 100644
index 000000000..9472935b7
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/main.yml
new file mode 100644
index 000000000..e15b4c55d
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_txt_record_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/nios_txt_record_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/nios_txt_record_idempotence.yml
new file mode 100644
index 000000000..37638d856
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_txt_record/tasks/nios_txt_record_idempotence.yml
@@ -0,0 +1,82 @@
+- name: cleanup the parent object
+ nios_zone:
+ name: ansible.com
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create the parent object
+ nios_zone:
+ name: ansible.com
+ state: present
+ provider: "{{ nios_provider }}"
+
+- name: cleanup txt record
+ nios_txt_record:
+ name: txt.ansible.com
+ text: mytext
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: create txt record
+ nios_txt_record:
+ name: txt.ansible.com
+ text: mytext
+ state: present
+ provider: "{{ nios_provider }}"
+ register: txt_create1
+
+- name: create txt record
+ nios_txt_record:
+ name: txt.ansible.com
+ text: mytext
+ state: present
+ provider: "{{ nios_provider }}"
+ register: txt_create2
+
+- assert:
+ that:
+ - "txt_create1.changed"
+ - "not txt_create2.changed"
+
+- name: add a comment to an existing txt record
+ nios_txt_record:
+ name: txt.ansible.com
+ text: mytext
+ state: present
+ comment: mycomment
+ provider: "{{ nios_provider }}"
+ register: txt_update1
+
+- name: add a comment to an existing txt record
+ nios_txt_record:
+ name: txt.ansible.com
+ text: mytext
+ state: present
+ comment: mycomment
+ provider: "{{ nios_provider }}"
+ register: txt_update2
+
+- name: remove a txt record from the system
+ nios_txt_record:
+ name: txt.ansible.com
+ text: mytext
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: txt_delete1
+
+- name: remove a txt record from the system
+ nios_txt_record:
+ name: txt.ansible.com
+ text: mytext
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: txt_delete2
+
+- assert:
+ that:
+ - "txt_create1.changed"
+ - "not txt_create2.changed"
+ - "txt_update1.changed"
+ - "not txt_update2.changed"
+ - "txt_delete1.changed"
+ - "not txt_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/aliases b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/aliases
new file mode 100644
index 000000000..b3138dc76
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/aliases
@@ -0,0 +1,3 @@
+shippable/cloud/group1
+cloud/nios
+destructive
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/defaults/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/defaults/main.yaml
new file mode 100644
index 000000000..ebf6ffc90
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/defaults/main.yaml
@@ -0,0 +1,3 @@
+---
+testcase: "*"
+test_items: [] \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/meta/main.yaml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/meta/main.yaml
new file mode 100644
index 000000000..9472935b7
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/meta/main.yaml
@@ -0,0 +1,2 @@
+dependencies:
+ - prepare_nios_tests \ No newline at end of file
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/main.yml
new file mode 100644
index 000000000..f066edcdb
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/main.yml
@@ -0,0 +1 @@
+- include: nios_zone_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/nios_zone_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/nios_zone_idempotence.yml
new file mode 100644
index 000000000..03d40aaf2
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/nios_zone/tasks/nios_zone_idempotence.yml
@@ -0,0 +1,68 @@
+- name: cleanup dns view instance
+ nios_dns_view:
+ name: ansible-dns
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: cleanup test zone
+ nios_zone:
+ name: ansible-dns
+ state: absent
+ provider: "{{ nios_provider }}"
+
+- name: configure a zone on the system
+ nios_zone:
+ name: ansible-dns
+ state: present
+ provider: "{{ nios_provider }}"
+ register: zone_create1
+
+- name: configure a zone on the system
+ nios_zone:
+ name: ansible-dns
+ state: present
+ provider: "{{ nios_provider }}"
+ register: zone_create2
+
+- name: update the comment and ext attributes for an existing zone
+ nios_zone:
+ name: ansible-dns
+ comment: this is an example comment
+ extattrs:
+ Site: west-dc
+ state: present
+ provider: "{{ nios_provider }}"
+ register: zone_update1
+
+- name: update the comment and ext attributes for an existing zone
+ nios_zone:
+ name: ansible-dns
+ comment: this is an example comment
+ extattrs:
+ Site: west-dc
+ state: present
+ provider: "{{ nios_provider }}"
+ register: zone_update2
+
+- name: remove the dns zone
+ nios_zone:
+ name: ansible-dns
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: zone_delete1
+
+- name: remove the dns zone
+ nios_zone:
+ name: ansible-dns
+ state: absent
+ provider: "{{ nios_provider }}"
+ register: zone_delete2
+
+- assert:
+ that:
+ - "zone_create1.changed"
+ - "not zone_create2.changed"
+ - "zone_update1.changed"
+ - "not zone_update2.changed"
+ - "zone_delete1.changed"
+ - "not zone_delete2.changed"
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/main.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/main.yml
new file mode 100644
index 000000000..2a3092f3a
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/main.yml
@@ -0,0 +1 @@
+- include: prepare_nios_tests_idempotence.yml
diff --git a/ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/prepare_nios_tests_idempotence.yml b/ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/prepare_nios_tests_idempotence.yml
new file mode 100644
index 000000000..749faa204
--- /dev/null
+++ b/ansible_collections/infoblox/nios_modules/tests/integration/targets/prepare_nios_tests/tasks/prepare_nios_tests_idempotence.yml
@@ -0,0 +1,2 @@
+- pip:
+ name: infoblox-client