diff options
author | Rémy Léone <rleone@scaleway.com> | 2019-04-01 10:54:34 +0200 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2019-04-09 15:41:30 -0700 |
commit | 16c4df439a6cf9b9a3cd6847ba6be654c8f8f3f6 (patch) | |
tree | df5b1fb2e243a9531ea16d756d9f218e8de4968f /test/integration/targets/scaleway_volume_facts | |
parent | 5215d004626856b3d0faa2bc8b5b2e84a2fb807e (diff) | |
download | ansible-16c4df439a6cf9b9a3cd6847ba6be654c8f8f3f6.tar.gz |
Migrate Scaleway tests to integration tests
Diffstat (limited to 'test/integration/targets/scaleway_volume_facts')
-rw-r--r-- | test/integration/targets/scaleway_volume_facts/aliases | 2 | ||||
-rw-r--r-- | test/integration/targets/scaleway_volume_facts/tasks/main.yml | 29 |
2 files changed, 31 insertions, 0 deletions
diff --git a/test/integration/targets/scaleway_volume_facts/aliases b/test/integration/targets/scaleway_volume_facts/aliases new file mode 100644 index 0000000000..f24a42a8e5 --- /dev/null +++ b/test/integration/targets/scaleway_volume_facts/aliases @@ -0,0 +1,2 @@ +cloud/scaleway +unsupported diff --git a/test/integration/targets/scaleway_volume_facts/tasks/main.yml b/test/integration/targets/scaleway_volume_facts/tasks/main.yml new file mode 100644 index 0000000000..b157e127ad --- /dev/null +++ b/test/integration/targets/scaleway_volume_facts/tasks/main.yml @@ -0,0 +1,29 @@ +# SCW_API_KEY='XXX' ansible-playbook ./test/legacy/scaleway.yml --tags test_scaleway_volume_facts + +- name: Get volume informations and register it in a variable + scaleway_volume_facts: + region: par1 + register: volumes + +- name: Display volumes variable + debug: + var: volumes + +- name: Ensure retrieval of volumes facts is success + assert: + that: + - volumes is success + +- name: Get volume informations and register it in a variable (AMS1) + scaleway_volume_facts: + region: ams1 + register: ams1_volumes + +- name: Display volumes variable + debug: + var: ams1_volumes + +- name: Ensure retrieval of volumes facts is success + assert: + that: + - ams1_volumes is success |