mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-02 08:38:52 +00:00
Bug fixes for GCP modules (#55973)
This commit is contained in:
parent
8d82df56ff
commit
b712b01f6e
23 changed files with 81 additions and 124 deletions
|
|
@ -49,7 +49,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length >= 1
|
||||
- results['resources'] | length >= 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a dataset that already exists
|
||||
gcp_bigquery_dataset:
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a dataset that does not exist
|
||||
gcp_bigquery_dataset:
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length >= 1
|
||||
- results['resources'] | length >= 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a table that already exists
|
||||
gcp_bigquery_table:
|
||||
|
|
@ -117,7 +117,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a table that does not exist
|
||||
gcp_bigquery_table:
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a address that already exists
|
||||
gcp_compute_address:
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a address that does not exist
|
||||
gcp_compute_address:
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a backend bucket that already exists
|
||||
gcp_compute_backend_bucket:
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a backend bucket that does not exist
|
||||
gcp_compute_backend_bucket:
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a backend service that already exists
|
||||
gcp_compute_backend_service:
|
||||
|
|
@ -130,7 +130,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a backend service that does not exist
|
||||
gcp_compute_backend_service:
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a disk that already exists
|
||||
gcp_compute_disk:
|
||||
|
|
@ -107,7 +107,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a disk that does not exist
|
||||
gcp_compute_disk:
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a firewall that already exists
|
||||
gcp_compute_firewall:
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a firewall that does not exist
|
||||
gcp_compute_firewall:
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a forwarding rule that already exists
|
||||
gcp_compute_forwarding_rule:
|
||||
|
|
@ -129,7 +129,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a forwarding rule that does not exist
|
||||
gcp_compute_forwarding_rule:
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a global address that already exists
|
||||
gcp_compute_global_address:
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a global address that does not exist
|
||||
gcp_compute_global_address:
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a global forwarding rule that already exists
|
||||
gcp_compute_global_forwarding_rule:
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a global forwarding rule that does not exist
|
||||
gcp_compute_global_forwarding_rule:
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 1
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a health check that already exists
|
||||
gcp_compute_health_check:
|
||||
|
|
@ -121,7 +121,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['items'] | length == 0
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a health check that does not exist
|
||||
gcp_compute_health_check:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue