Bug fixes for GCP modules (#58848)
This commit is contained in:
parent
9721c4045b
commit
d336a989e4
8 changed files with 21 additions and 21 deletions
|
@ -60,7 +60,7 @@ options:
|
|||
required: false
|
||||
backends:
|
||||
description:
|
||||
- The list of backends that serve this BackendService.
|
||||
- The set of backends that serve this BackendService.
|
||||
required: false
|
||||
suboptions:
|
||||
balancing_mode:
|
||||
|
@ -229,7 +229,7 @@ options:
|
|||
type: bool
|
||||
health_checks:
|
||||
description:
|
||||
- The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
|
||||
- The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
|
||||
checking this BackendService. Currently at most one health check can be specified,
|
||||
and a health check is required.
|
||||
- For internal load balancing, a URL to a HealthCheck resource must be specified
|
||||
|
@ -339,7 +339,7 @@ EXAMPLES = '''
|
|||
gcp_compute_backend_service:
|
||||
name: test_object
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
@ -360,7 +360,7 @@ affinityCookieTtlSec:
|
|||
type: int
|
||||
backends:
|
||||
description:
|
||||
- The list of backends that serve this BackendService.
|
||||
- The set of backends that serve this BackendService.
|
||||
returned: success
|
||||
type: complex
|
||||
contains:
|
||||
|
@ -550,7 +550,7 @@ enableCDN:
|
|||
type: bool
|
||||
healthChecks:
|
||||
description:
|
||||
- The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
|
||||
- The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
|
||||
checking this BackendService. Currently at most one health check can be specified,
|
||||
and a health check is required.
|
||||
- For internal load balancing, a URL to a HealthCheck resource must be specified
|
||||
|
|
|
@ -76,7 +76,7 @@ resources:
|
|||
type: int
|
||||
backends:
|
||||
description:
|
||||
- The list of backends that serve this BackendService.
|
||||
- The set of backends that serve this BackendService.
|
||||
returned: success
|
||||
type: complex
|
||||
contains:
|
||||
|
@ -267,7 +267,7 @@ resources:
|
|||
type: bool
|
||||
healthChecks:
|
||||
description:
|
||||
- The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
|
||||
- The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health
|
||||
checking this BackendService. Currently at most one health check can be specified,
|
||||
and a health check is required.
|
||||
- For internal load balancing, a URL to a HealthCheck resource must be specified
|
||||
|
|
|
@ -181,7 +181,7 @@ EXAMPLES = '''
|
|||
gcp_compute_backend_service:
|
||||
name: backendservice-globalforwardingrule
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | length >= 1
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*my_example_dataset.*") | list | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a dataset that already exists
|
||||
gcp_bigquery_dataset:
|
||||
|
@ -93,7 +93,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | length == 0
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*my_example_dataset.*") | list | 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['resources'] | length >= 1
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*example_table.*") | list | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a table that already exists
|
||||
gcp_bigquery_table:
|
||||
|
@ -117,7 +117,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | length == 0
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*example_table.*") | list | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a table that does not exist
|
||||
gcp_bigquery_table:
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | length >= 1
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*job.*") | list | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a job that already exists
|
||||
gcp_cloudscheduler_job:
|
||||
|
@ -128,7 +128,7 @@
|
|||
- name: verify that command succeeded
|
||||
assert:
|
||||
that:
|
||||
- results['resources'] | length == 0
|
||||
- results['resources'] | map(attribute='name') | select("match", ".*job.*") | list | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a job that does not exist
|
||||
gcp_cloudscheduler_job:
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
gcp_compute_backend_service:
|
||||
name: "{{ resource_name }}"
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
@ -51,7 +51,7 @@
|
|||
gcp_compute_backend_service:
|
||||
name: "{{ resource_name }}"
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
@ -84,7 +84,7 @@
|
|||
gcp_compute_backend_service:
|
||||
name: "{{ resource_name }}"
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
@ -103,7 +103,7 @@
|
|||
gcp_compute_backend_service:
|
||||
name: "{{ resource_name }}"
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
@ -136,7 +136,7 @@
|
|||
gcp_compute_backend_service:
|
||||
name: "{{ resource_name }}"
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
gcp_compute_backend_service:
|
||||
name: backendservice-globalforwardingrule
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
@ -211,7 +211,7 @@
|
|||
gcp_compute_backend_service:
|
||||
name: backendservice-globalforwardingrule
|
||||
backends:
|
||||
- group: "{{ instancegroup }}"
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
health_checks:
|
||||
- "{{ healthcheck.selfLink }}"
|
||||
enable_cdn: 'true'
|
||||
|
|
Loading…
Reference in a new issue