mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Clean up and migrate Azure tests. (#28103)
* Remove placeholder Azure test. * Migrate Azure tests to ansible-test. * Initial cleanup on remaining legacy Azure tests.
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
- name: Create resource group
|
||||
azure_rm_resourcegroup:
|
||||
name: "{{ resource_group }}"
|
||||
location: "{{ location }}"
|
||||
|
||||
- name: Create security group
|
||||
azure_rm_securitygroup:
|
||||
resource_group: "{{ resource_group }}"
|
||||
@@ -28,9 +23,6 @@
|
||||
direction: Inbound
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert: { that: "{{ output.state.rules | length }} == 2" }
|
||||
|
||||
- name: Gather facts by tags
|
||||
@@ -41,9 +33,6 @@
|
||||
- foo:bar
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert:
|
||||
that: azure_securitygroups | length == 1
|
||||
|
||||
@@ -64,9 +53,6 @@
|
||||
priority: 102
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert: { that: "{{ output.state.rules | length }} == 3" }
|
||||
|
||||
- name: Test idempotence
|
||||
@@ -86,9 +72,6 @@
|
||||
priority: 102
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert:
|
||||
that: not output.changed
|
||||
|
||||
@@ -102,9 +85,6 @@
|
||||
baz: bar
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- output.state.tags | length == 3
|
||||
@@ -119,9 +99,6 @@
|
||||
delete: on-exit
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- output.state.tags | length == 2
|
||||
@@ -133,9 +110,6 @@
|
||||
name: mysecgroup
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- azure_securitygroups | length == 1
|
||||
@@ -145,9 +119,6 @@
|
||||
resource_group: "{{ resource_group }}"
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- azure_securitygroups | length > 0
|
||||
@@ -164,9 +135,6 @@
|
||||
resource_group: "{{ resource_group }}"
|
||||
register: output
|
||||
|
||||
- debug: var=output
|
||||
when: playbook_debug
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- azure_securitygroups | length == 0
|
||||
|
||||
Reference in New Issue
Block a user