summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/cloudscale_server
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-02-22 21:43:45 +0100
committerGitHub <noreply@github.com>2017-02-22 21:43:45 +0100
commitcba91c7f44e0cf8a45838c804d690c47dbe5e12f (patch)
tree5eb44fd7e9a7512f3660fad8b7848deaae61516a /test/integration/targets/cloudscale_server
parentFixes for missing aliases files sanity test. (#21798) (diff)
downloadansible-cba91c7f44e0cf8a45838c804d690c47dbe5e12f.tar.xz
ansible-cba91c7f44e0cf8a45838c804d690c47dbe5e12f.zip
Test placement (#21801)
* Fix test placement and update messaging. * Add note about group selection.
Diffstat (limited to 'test/integration/targets/cloudscale_server')
-rw-r--r--test/integration/targets/cloudscale_server/aliases0
-rw-r--r--test/integration/targets/cloudscale_server/defaults/main.yml5
-rw-r--r--test/integration/targets/cloudscale_server/meta/main.yml2
-rw-r--r--test/integration/targets/cloudscale_server/tasks/main.yml138
4 files changed, 0 insertions, 145 deletions
diff --git a/test/integration/targets/cloudscale_server/aliases b/test/integration/targets/cloudscale_server/aliases
deleted file mode 100644
index e69de29bb2..0000000000
--- a/test/integration/targets/cloudscale_server/aliases
+++ /dev/null
diff --git a/test/integration/targets/cloudscale_server/defaults/main.yml b/test/integration/targets/cloudscale_server/defaults/main.yml
deleted file mode 100644
index af078a79be..0000000000
--- a/test/integration/targets/cloudscale_server/defaults/main.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-cloudscale_test_flavor: flex-2
-cloudscale_test_image: debian-8
-cloudscale_test_ssh_key: |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSPmiqkvDH1/+MDAVDZT8381aYqp73Odz8cnD5hegNhqtXajqtiH0umVg7HybX3wt1HjcrwKJovZURcIbbcDvzdH2bnYbF93T4OLXA0bIfuIp6M86x1iutFtXdpN3TTicINrmSXEE2Ydm51iMu77B08ZERjVaToya2F7vC+egfoPvibf7OLxE336a5tPCywavvNihQjL8sjgpDT5AAScjb3YqK/6VLeQ18Ggt8/ufINsYkb+9/Ji/3OcGFeflnDXq80vPUyF3u4iIylob6RSZenC38cXmQB05tRNxS1B6BXCjMRdy0v4pa7oKM2GA4ADKpNrr0RI9ed+peRFwmsclH test@ansible \ No newline at end of file
diff --git a/test/integration/targets/cloudscale_server/meta/main.yml b/test/integration/targets/cloudscale_server/meta/main.yml
deleted file mode 100644
index 07faa21776..0000000000
--- a/test/integration/targets/cloudscale_server/meta/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-dependencies:
- - prepare_tests
diff --git a/test/integration/targets/cloudscale_server/tasks/main.yml b/test/integration/targets/cloudscale_server/tasks/main.yml
deleted file mode 100644
index b9e983c3ba..0000000000
--- a/test/integration/targets/cloudscale_server/tasks/main.yml
+++ /dev/null
@@ -1,138 +0,0 @@
----
-- name: Test create server
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- flavor: '{{ cloudscale_test_flavor }}'
- image: '{{ cloudscale_test_image }}'
- ssh_keys: '{{ cloudscale_test_ssh_key }}'
- register: server
-- name: Verify create server
- assert:
- that:
- - server|success
- - server|changed
- - server.state == 'running'
-
-- name: Test create server indempotence
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- flavor: '{{ cloudscale_test_flavor }}'
- image: '{{ cloudscale_test_image }}'
- ssh_keys: '{{ cloudscale_test_ssh_key }}'
- register: server
-- name: Verify create server
- assert:
- that:
- - server|success
- - not server|changed
- - server.state == 'running'
-
-- name: Test create server stopped
- cloudscale_server:
- name: '{{ resource_prefix }}-test-stopped'
- flavor: '{{ cloudscale_test_flavor }}'
- image: '{{ cloudscale_test_image }}'
- ssh_keys: '{{ cloudscale_test_ssh_key }}'
- state: 'stopped'
- register: server_stopped
-- name: Verify create server stopped
- assert:
- that:
- - server_stopped|success
- - server_stopped|changed
- - server_stopped.state == 'stopped'
-
-- name: Test create server failure without required parameters
- cloudscale_server:
- name: '{{ resource_prefix }}-test-failed'
- register: server_failed
- ignore_errors: True
-- name: Verify create server failure without required parameters
- assert:
- that:
- - server_failed|failed
- - "'Missing required parameter' in server_failed.msg"
-
-- name: Test server stopped
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- state: 'stopped'
- register: server
-- name: Verify server stopped
- assert:
- that:
- - server|success
- - server|changed
- - server.state == 'stopped'
-
-- name: Test server stopped indempotence
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- state: 'stopped'
- register: server
-- name: Verify server stopped indempotence
- assert:
- that:
- - server|success
- - not server|changed
- - server.state == 'stopped'
-
-- name: Test server running
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- state: 'running'
- register: server
-- name: Verify server running
- assert:
- that:
- - server|success
- - server|changed
- - server.state == 'running'
-
-- name: Test server running indempotence
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- state: 'running'
- register: server
-- name: Verify server running indempotence
- assert:
- that:
- - server|success
- - not server|changed
- - server.state == 'running'
-
-- name: Test server deletion by name
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- state: 'absent'
- register: server
-- name: Verify server deletion
- assert:
- that:
- - server|success
- - server|changed
- - server.state == 'absent'
-
-- name: Test server deletion by uuid
- cloudscale_server:
- uuid: '{{ server_stopped.uuid }}'
- state: 'absent'
- register: server_stopped
-- name: Verify server deletion by uuid
- assert:
- that:
- - server_stopped|success
- - server_stopped|changed
- - server_stopped.state == 'absent'
-
-- name: Test server deletion indempotence
- cloudscale_server:
- name: '{{ resource_prefix }}-test'
- state: 'absent'
- register: server
-- name: Verify server deletion
- assert:
- that:
- - server|success
- - not server|changed
- - server.state == 'absent'