summaryrefslogtreecommitdiff
path: root/test/integration/targets/azure_rm_publicipaddress
diff options
context:
space:
mode:
authorAnsible Core Team <info@ansible.com>2020-03-09 09:40:37 +0000
committerAnsible Core Team <info@ansible.com>2020-03-09 09:40:37 +0000
commitb182f411ea18f84e274096efc3288dfc7c9887f5 (patch)
tree386049f500b76e03430a9e8093e7e838da4966fd /test/integration/targets/azure_rm_publicipaddress
parentb33dfe795861f249b9d5c9604f3543eeb1a0fd51 (diff)
downloadansible-b182f411ea18f84e274096efc3288dfc7c9887f5.tar.gz
Migrated to azure.azcollection
Diffstat (limited to 'test/integration/targets/azure_rm_publicipaddress')
-rw-r--r--test/integration/targets/azure_rm_publicipaddress/aliases4
-rw-r--r--test/integration/targets/azure_rm_publicipaddress/meta/main.yml2
-rw-r--r--test/integration/targets/azure_rm_publicipaddress/tasks/main.yml113
3 files changed, 0 insertions, 119 deletions
diff --git a/test/integration/targets/azure_rm_publicipaddress/aliases b/test/integration/targets/azure_rm_publicipaddress/aliases
deleted file mode 100644
index 7b5d7f9851..0000000000
--- a/test/integration/targets/azure_rm_publicipaddress/aliases
+++ /dev/null
@@ -1,4 +0,0 @@
-cloud/azure
-shippable/azure/group2
-destructive
-azure_rm_publicipaddress_facts
diff --git a/test/integration/targets/azure_rm_publicipaddress/meta/main.yml b/test/integration/targets/azure_rm_publicipaddress/meta/main.yml
deleted file mode 100644
index 95e1952f98..0000000000
--- a/test/integration/targets/azure_rm_publicipaddress/meta/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-dependencies:
- - setup_azure
diff --git a/test/integration/targets/azure_rm_publicipaddress/tasks/main.yml b/test/integration/targets/azure_rm_publicipaddress/tasks/main.yml
deleted file mode 100644
index a5f929b0a3..0000000000
--- a/test/integration/targets/azure_rm_publicipaddress/tasks/main.yml
+++ /dev/null
@@ -1,113 +0,0 @@
-- name: Create domain name
- set_fact:
- domain_name: "ansible-{{ resource_group | hash('md5') | truncate(24, True, '') }}"
- rpfx: "{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}"
-
-- name: Remove public ip
- azure_rm_publicipaddress:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
- state: absent
-
-- name: Create public ip
- azure_rm_publicipaddress:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
- allocation_method: Static
- domain_name: "{{ domain_name }}"
- tags:
- testing: testing
- delete: on-exit
- register: output
-
-- assert:
- that:
- - output.state.public_ip_allocation_method == 'static'
- - output.state.dns_settings.domain_name_label == domain_name
- - output.state.tags | length == 2
- - output.state.tags.testing == 'testing'
-
-- name: Should be idempotent
- azure_rm_publicipaddress:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
- allocation_method: static
- domain_name: "{{ domain_name }}"
- register: output
-
-- assert:
- that: not output.changed
-
-- name: Update tags
- azure_rm_publicipaddress:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
- allocation_method: static
- domain_name: "{{ domain_name }}"
- append_tags: yes
- tags:
- delete: never
- foo: bar
- register: output
-
-- assert:
- that:
- - output.state.tags | length == 3
- - output.state.tags.delete == 'never'
-
-- name: Gather facts, filtering by tag
- azure_rm_publicipaddress_facts:
- resource_group: "{{ resource_group }}"
- tags:
- - testing
- - foo:bar
-
-- assert:
- that: azure_publicipaddresses | length == 1
-
-- name: Purge all tags
- azure_rm_publicipaddress:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
- allocation_method: static
- domain_name: "{{ domain_name }}"
- append_tags: no
- register: output
-
-- assert:
- that:
- - output.state.tags | length == 0
-
-- name: Gather facts for a public ip
- azure_rm_publicipaddress_facts:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
- register: pip
-
-- assert:
- that:
- - "pip.publicipaddresses | length == 1"
- - pip.publicipaddresses[0].name == "pip{{ rpfx }}"
- - pip.publicipaddresses[0].allocation_method == 'static'
- - pip.publicipaddresses[0].dns_settings.domain_name_label == domain_name
-
-- name: Gather facts for all public ips
- azure_rm_publicipaddress_facts:
- resource_group: "{{ resource_group }}"
-
-- assert:
- that: azure_publicipaddresses | length > 0
-
-- name: Remove public ip
- azure_rm_publicipaddress:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
- state: absent
-
-- name: Gather facts for a public ip
- azure_rm_publicipaddress_facts:
- resource_group: "{{ resource_group }}"
- name: "pip{{ rpfx }}"
-
-- assert:
- that: azure_publicipaddresses | length == 0