mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-28 07:31:29 -07:00
Remove jinja vars from conditional statements in integration test asserts
This commit is contained in:
parent
a9c0624bbd
commit
d9d57cbeeb
7 changed files with 14 additions and 14 deletions
|
@ -62,7 +62,7 @@
|
|||
- name: Verify that command succeeded
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'my-pool' in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*my-pool.*") | list | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: Create a node pool that already exists
|
||||
google.cloud.gcp_container_node_pool:
|
||||
|
@ -108,7 +108,7 @@
|
|||
- name: Verify that command succeeded
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'my-pool' not in \"{{ results['resources'] | map(attribute='name') | list }}\""
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*my-pool.*") | list | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: Delete a node pool that does not exist
|
||||
google.cloud.gcp_container_node_pool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue