Remove and redirect all infoblox/nios content (#3592)

* Remove and redirect all infoblox/nios content.

* Remove ignore.txt entries.

* Update BOTMETA.
This commit is contained in:
Felix Fontein 2021-10-21 08:02:06 +02:00 committed by GitHub
parent 6580e7559b
commit a68445486e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
127 changed files with 23 additions and 9251 deletions

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_a_record_idempotence.yml

View file

@ -1,77 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_aaaa_record_idempotence.yml

View file

@ -1,77 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_cname_record_idempotence.yml

View file

@ -1,77 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_dns_view_idempotence.yml

View file

@ -1,58 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_host_record_idempotence.yml

View file

@ -1,126 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_mx_record_idempotence.yml

View file

@ -1,84 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_naptr_record_idempotence.yml

View file

@ -1,91 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_network_idempotence.yml

View file

@ -1,80 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_network_view_idempotence.yml

View file

@ -1,58 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_ptr_record_idempotence.yml

View file

@ -1,83 +0,0 @@
---
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_srv_record_idempotence.yml

View file

@ -1,98 +0,0 @@
- 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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_txt_record_idempotence.yml

View file

@ -1,80 +0,0 @@
- 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
state: absent
provider: "{{ nios_provider }}"
register: txt_delete1
- name: remove a txt record from the system
nios_txt_record:
name: txt.ansible.com
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"

View file

@ -1,3 +0,0 @@
shippable/cloud/group1
cloud/nios
destructive

View file

@ -1,3 +0,0 @@
---
testcase: "*"
test_items: []

View file

@ -1,2 +0,0 @@
dependencies:
- prepare_nios_tests

View file

@ -1,6 +0,0 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_zone_idempotence.yml

View file

@ -1,68 +0,0 @@
- 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"

View file

@ -1,4 +0,0 @@
---
- name: Install
pip:
name: infoblox-client