summaryrefslogtreecommitdiff
path: root/tests/integration/targets
diff options
context:
space:
mode:
authorRohit Thakur <rohitthakur2590@outlook.com>2021-04-28 17:39:24 +0530
committerGitHub <noreply@github.com>2021-04-28 12:09:24 +0000
commite1c29bf3b6e0ba4887693fcc347d8887051aa148 (patch)
treed0cd7ae2fb73c8fab1cd470328564058a316faf8 /tests/integration/targets
parentdccc17eb6956a9a09485b90198219559acd3a209 (diff)
downloadvyos.vyos-e1c29bf3b6e0ba4887693fcc347d8887051aa148.tar.gz
vyos.vyos-e1c29bf3b6e0ba4887693fcc347d8887051aa148.zip
VyOS: available_network_resources implemented in vyos_facts (#148)
VyOS: available_network_resources implemented in vyos_facts Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'tests/integration/targets')
-rw-r--r--tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml b/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml
index 5802f73..ede7ca2 100644
--- a/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml
+++ b/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml
@@ -40,3 +40,16 @@
that:
- result.ansible_facts.ansible_net_commits is defined
- result.ansible_facts.ansible_net_config is defined
+
+- name: Get list of avaliable network resources for VyOS
+ register: result
+ vyos.vyos.vyos_facts:
+ available_network_resources: true
+ gather_network_resources: all
+
+- name: Assert that correct available_resources_list returned
+ assert:
+ that:
+ - result.changed == false
+ - "{{ result['ansible_facts']['available_network_resources'] | symmetric_difference(result['ansible_facts']['ansible_net_gather_network_resources']) |length\
+ \ == 0 }}"