summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/cs_cluster
diff options
context:
space:
mode:
authorRene Moser <mail@renemoser.net>2017-05-28 01:01:38 +0200
committerRené Moser <mail@renemoser.net>2017-05-29 01:28:19 +0200
commit9fe3891d65458e7db8aa0d4f28e673ec13375e05 (patch)
tree213afffe9d6b78a639bcb0c6979f141c5c0f0b63 /test/integration/targets/cs_cluster
parentAdded all new modules to CHANGELOG (#25120) (diff)
downloadansible-9fe3891d65458e7db8aa0d4f28e673ec13375e05.tar.xz
ansible-9fe3891d65458e7db8aa0d4f28e673ec13375e05.zip
cloudstack: fix pep8 cs_cluster
Diffstat (limited to 'test/integration/targets/cs_cluster')
-rw-r--r--test/integration/targets/cs_cluster/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/integration/targets/cs_cluster/tasks/main.yml b/test/integration/targets/cs_cluster/tasks/main.yml
index da85775006..b7687d0baf 100644
--- a/test/integration/targets/cs_cluster/tasks/main.yml
+++ b/test/integration/targets/cs_cluster/tasks/main.yml
@@ -44,6 +44,21 @@
- cluster|failed
- "cluster.msg == 'missing required arguments: name'"
+- name: test fail if pod not found
+ cs_cluster:
+ name: "{{ cs_resource_prefix }}-cluster"
+ zone: "{{ cs_resource_prefix }}-zone"
+ hypervisor: simulator
+ cluster_type: CloudManaged
+ pod: unexistent
+ register: cluster
+ ignore_errors: true
+- name: verify results of fail if missing name
+ assert:
+ that:
+ - cluster|failed
+ - "cluster.msg == 'Pod unexistent not found in zone {{ cs_resource_prefix }}-zone'"
+
- name: test create cluster in check mode
cs_cluster:
name: "{{ cs_resource_prefix }}-cluster"