Bug fixes for GCP modules (#58851)
This commit is contained in:
parent
4eba84ce78
commit
d88f686976
3 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['resources'] | length >= 1
|
- results['resources'] | map(attribute='name') | select("match", ".*{{ resource_name }}.*") | list | length == 1
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: create a repository that already exists
|
- name: create a repository that already exists
|
||||||
gcp_sourcerepo_repository:
|
gcp_sourcerepo_repository:
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['resources'] | length == 0
|
- results['resources'] | map(attribute='name') | select("match", ".*{{ resource_name }}.*") | list | length == 0
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: delete a repository that does not exist
|
- name: delete a repository that does not exist
|
||||||
gcp_sourcerepo_repository:
|
gcp_sourcerepo_repository:
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['resources'] | length >= 1
|
- results['resources'] | map(attribute='name') | select("match", ".*{{resource_name}}-2.*") | list | length == 1
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: create a instance that already exists
|
- name: create a instance that already exists
|
||||||
gcp_sql_instance:
|
gcp_sql_instance:
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['resources'] | length == 0
|
- results['resources'] | map(attribute='name') | select("match", ".*{{resource_name}}-2.*") | list | length == 0
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: delete a instance that does not exist
|
- name: delete a instance that does not exist
|
||||||
gcp_sql_instance:
|
gcp_sql_instance:
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['resources'] | length >= 1
|
- results['resources'] | map(attribute='name') | select("match", ".*{{ resource_name }}.*") | list | length == 1
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: create a node that already exists
|
- name: create a node that already exists
|
||||||
gcp_tpu_node:
|
gcp_tpu_node:
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
- name: verify that command succeeded
|
- name: verify that command succeeded
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results['resources'] | length == 0
|
- results['resources'] | map(attribute='name') | select("match", ".*{{ resource_name }}.*") | list | length == 0
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
- name: delete a node that does not exist
|
- name: delete a node that does not exist
|
||||||
gcp_tpu_node:
|
gcp_tpu_node:
|
||||||
|
|
Loading…
Reference in a new issue