summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYunge Zhu <37337818+yungezz@users.noreply.github.com>2019-04-03 16:22:16 +0200
committerGitHub <noreply@github.com>2019-04-03 16:22:16 +0200
commita387b8e2396c5b8373bf9238a2583964f333932f (patch)
tree36cad4579b53577036127745337b13385b9d00d5 /test
parentNetbox site module (#53219) (diff)
downloadansible-a387b8e2396c5b8373bf9238a2583964f333932f.tar.xz
ansible-a387b8e2396c5b8373bf9238a2583964f333932f.zip
add vnet peering facts module (#53942)
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/azure_rm_virtualnetworkpeering/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/azure_rm_virtualnetworkpeering/tasks/main.yml b/test/integration/targets/azure_rm_virtualnetworkpeering/tasks/main.yml
index 96a9abc9c4..9eb0424af3 100644
--- a/test/integration/targets/azure_rm_virtualnetworkpeering/tasks/main.yml
+++ b/test/integration/targets/azure_rm_virtualnetworkpeering/tasks/main.yml
@@ -89,6 +89,22 @@
- assert:
that: output.changed
+- name: Get facts
+ azure_rm_virtualnetworkpeering_facts:
+ resource_group: "{{ resource_group }}"
+ name: "{{ peering_name }}"
+ virtual_network: "{{ vnetname1 }}"
+ register: facts
+
+- name: Assert Facts
+ assert:
+ that:
+ - facts['vnetpeerings'] | length == 1
+ - facts['vnetpeerings'][0]['id']
+ - facts['vnetpeerings'][0]['peering_state']
+ - facts['vnetpeerings'][0]['remote_virtual_network']
+ - facts['vnetpeerings'][0]['provisioning_state']
+
- name: Delete virtual network peering
azure_rm_virtualnetworkpeering:
resource_group: "{{ resource_group }}"