summaryrefslogtreecommitdiff
path: root/test/legacy/roles/test_rax_facts/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/legacy/roles/test_rax_facts/tasks/main.yml')
-rw-r--r--test/legacy/roles/test_rax_facts/tasks/main.yml36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/legacy/roles/test_rax_facts/tasks/main.yml b/test/legacy/roles/test_rax_facts/tasks/main.yml
index 07969d5976..2f8f04873a 100644
--- a/test/legacy/roles/test_rax_facts/tasks/main.yml
+++ b/test/legacy/roles/test_rax_facts/tasks/main.yml
@@ -7,7 +7,7 @@
- name: Validate results of rax_facts with no args
assert:
that:
- - rax_facts|failed
+ - rax_facts is failed
- 'rax_facts.msg == "one of the following is required: address,id,name"'
# ============================================================
@@ -25,7 +25,7 @@
- name: Validate results of rax_facts with only creds
assert:
that:
- - rax_facts|failed
+ - rax_facts is failed
- rax_facts.msg.startswith('None is not a valid region')
# ============================================================
@@ -44,9 +44,9 @@
- name: Validate rax_facts creds, region and address
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts == {}
- - not rax_facts|changed
+ - rax_facts is not changed
# ============================================================
@@ -64,9 +64,9 @@
- name: Validate rax_facts creds, region and id
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts == {}
- - not rax_facts|changed
+ - rax_facts is not changed
# ============================================================
@@ -84,9 +84,9 @@
- name: Validate rax_facts creds, region and name
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts == {}
- - not rax_facts|changed
+ - rax_facts is not changed
# ============================================================
@@ -106,7 +106,7 @@
- name: Validate rax_facts creds, region, address, id and name
assert:
that:
- - rax_facts|failed
+ - rax_facts is failed
- "rax_facts.msg == 'parameters are mutually exclusive: [\\'address\\', \\'id\\', \\'name\\']'"
# ============================================================
@@ -128,8 +128,8 @@
- name: Validate build
assert:
that:
- - rax|success
- - rax|changed
+ - rax is successful
+ - rax is changed
- rax.action == 'create'
- rax.instances|length == 1
- rax.instances[0].name == "{{ resource_prefix }}-rax_facts"
@@ -150,7 +150,7 @@
- name: Validate rax_facts creds, region, and valid public IPv4 address
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts.rax_flavor == rax.success.0.rax_flavor
- rax_facts.ansible_facts.rax_image == rax.success.0.rax_image
- rax_facts.ansible_facts.rax_addresses == rax.success.0.rax_addresses
@@ -174,7 +174,7 @@
- name: Validate rax_facts creds, region, and valid public IPv6 address
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts.rax_flavor == rax.success.0.rax_flavor
- rax_facts.ansible_facts.rax_image == rax.success.0.rax_image
- rax_facts.ansible_facts.rax_addresses == rax.success.0.rax_addresses
@@ -198,7 +198,7 @@
- name: Validate rax_facts creds, region, and valid private IPv4 address
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts.rax_flavor == rax.success.0.rax_flavor
- rax_facts.ansible_facts.rax_image == rax.success.0.rax_image
- rax_facts.ansible_facts.rax_addresses == rax.success.0.rax_addresses
@@ -222,7 +222,7 @@
- name: Validate rax_facts creds, region, and valid ID
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts.rax_flavor == rax.success.0.rax_flavor
- rax_facts.ansible_facts.rax_image == rax.success.0.rax_image
- rax_facts.ansible_facts.rax_addresses == rax.success.0.rax_addresses
@@ -246,7 +246,7 @@
- name: Validate rax_facts creds, region, and valid name
assert:
that:
- - rax_facts|success
+ - rax_facts is successful
- rax_facts.ansible_facts.rax_flavor == rax.success.0.rax_flavor
- rax_facts.ansible_facts.rax_image == rax.success.0.rax_image
- rax_facts.ansible_facts.rax_addresses == rax.success.0.rax_addresses
@@ -274,8 +274,8 @@
- name: "Validate delete"
assert:
that:
- - rax|changed
- - rax|success
+ - rax is changed
+ - rax is successful
- rax.action == 'delete'
- rax.success[0].name == "{{ resource_prefix }}-rax_facts"
# ============================================================