summaryrefslogtreecommitdiff
path: root/test/legacy
diff options
context:
space:
mode:
authorYanis Guenane <yanis@guenane.org>2018-08-15 00:40:19 +0200
committerMichael Scherer <mscherer@users.noreply.github.com>2018-08-24 18:15:45 +0200
commit809aa2d76751f0ee334019be98f7763cf54cf25f (patch)
treef7375ef30a5bd1f29eb778600c887825f01b781b /test/legacy
parent2cfcfd6dc9135df47b24e2b3b4f585fc97ba5f79 (diff)
downloadansible-809aa2d76751f0ee334019be98f7763cf54cf25f.tar.gz
scaleway: Introduce scaleway_snapshot_facts module
Co-authored-by: Rémy Leone <rleone@online.net>
Diffstat (limited to 'test/legacy')
-rw-r--r--test/legacy/roles/scaleway_snapshot_facts/tasks/main.yml12
-rw-r--r--test/legacy/scaleway.yml1
2 files changed, 13 insertions, 0 deletions
diff --git a/test/legacy/roles/scaleway_snapshot_facts/tasks/main.yml b/test/legacy/roles/scaleway_snapshot_facts/tasks/main.yml
new file mode 100644
index 0000000000..17929cc56c
--- /dev/null
+++ b/test/legacy/roles/scaleway_snapshot_facts/tasks/main.yml
@@ -0,0 +1,12 @@
+- name: Get snapshot informations and register it in a variable
+ scaleway_snapshot_facts:
+ register: snapshots
+
+- name: Display snapshots variable
+ debug:
+ var: snapshots
+
+- name: Ensure retrieval of snapshots facts is success
+ assert:
+ that:
+ - snapshots is success
diff --git a/test/legacy/scaleway.yml b/test/legacy/scaleway.yml
index e814cbf8cb..5e8e2ddd84 100644
--- a/test/legacy/scaleway.yml
+++ b/test/legacy/scaleway.yml
@@ -11,6 +11,7 @@
- { role: scaleway_ip_facts, tags: test_scaleway_ip_facts }
- { role: scaleway_security_group_facts, tags: test_scaleway_security_group_facts }
- { role: scaleway_server_facts, tags: test_scaleway_server_facts }
+ - { role: scaleway_snapshot_facts, tags: test_scaleway_snapshot_facts }
- { role: scaleway_ssh, tags: test_scaleway_ssh }
- { role: scaleway_volume, tags: test_scaleway_volume }
- { role: scaleway_volume_facts, tags: test_scaleway_volume_facts }