Bug fixes for GCP modules (#60115)

This commit is contained in:
The Magician 2019-08-12 11:34:21 -07:00 committed by ansibot
parent be459c00bf
commit 6cb5b67b22
9 changed files with 26 additions and 25 deletions

View file

@ -174,7 +174,7 @@ EXAMPLES = '''
state: present
register: instancegroup
- name: create a http health check
- name: create a HTTP health check
gcp_compute_http_health_check:
name: httphealthcheck-globalforwardingrule
healthy_threshold: 10
@ -201,7 +201,7 @@ EXAMPLES = '''
state: present
register: backendservice
- name: create a url map
- name: create a URL map
gcp_compute_url_map:
name: urlmap-globalforwardingrule
default_service: "{{ backendservice }}"
@ -211,7 +211,7 @@ EXAMPLES = '''
state: present
register: urlmap
- name: create a target http proxy
- name: create a target HTTP proxy
gcp_compute_target_http_proxy:
name: targethttpproxy-globalforwardingrule
url_map: "{{ urlmap }}"

View file

@ -120,7 +120,7 @@ notes:
'''
EXAMPLES = '''
- name: create a http health check
- name: create a HTTP health check
gcp_compute_http_health_check:
name: test_object
healthy_threshold: 10

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
'''
EXAMPLES = '''
- name: get info on an HTTP health check
- name: get info on a HTTP health check
gcp_compute_http_health_check_info:
filters:
- name = test_object

View file

@ -117,7 +117,7 @@ notes:
'''
EXAMPLES = '''
- name: create a https health check
- name: create a HTTPS health check
gcp_compute_https_health_check:
name: test_object
healthy_threshold: 10

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
'''
EXAMPLES = '''
- name: get info on an HTTPS health check
- name: get info on a HTTPS health check
gcp_compute_https_health_check_info:
filters:
- name = test_object

View file

@ -787,7 +787,8 @@ networkInterfaces:
network:
description:
- Specifies the title of an existing network. Not setting the network title
will select the default network interface, which could have SSH already configured.
will select the default network interface, which could have SSH already configured
.
returned: success
type: dict
networkIP:

View file

@ -30,7 +30,7 @@
service_account_file: "{{ gcp_cred_file }}"
state: present
register: instancegroup
- name: create a http health check
- name: create a HTTP health check
gcp_compute_http_health_check:
name: httphealthcheck-globalforwardingrule
healthy_threshold: 10
@ -55,7 +55,7 @@
service_account_file: "{{ gcp_cred_file }}"
state: present
register: backendservice
- name: create a url map
- name: create a URL map
gcp_compute_url_map:
name: urlmap-globalforwardingrule
default_service: "{{ backendservice }}"
@ -64,7 +64,7 @@
service_account_file: "{{ gcp_cred_file }}"
state: present
register: urlmap
- name: create a target http proxy
- name: create a target HTTP proxy
gcp_compute_target_http_proxy:
name: targethttpproxy-globalforwardingrule
url_map: "{{ urlmap }}"
@ -183,7 +183,7 @@
#---------------------------------------------------------
# Post-test teardown
# If errors happen, don't crash the playbook!
- name: delete a target http proxy
- name: delete a target HTTP proxy
gcp_compute_target_http_proxy:
name: targethttpproxy-globalforwardingrule
url_map: "{{ urlmap }}"
@ -193,7 +193,7 @@
state: absent
register: httpproxy
ignore_errors: true
- name: delete a url map
- name: delete a URL map
gcp_compute_url_map:
name: urlmap-globalforwardingrule
default_service: "{{ backendservice }}"
@ -217,7 +217,7 @@
state: absent
register: backendservice
ignore_errors: true
- name: delete a http health check
- name: delete a HTTP health check
gcp_compute_http_health_check:
name: httphealthcheck-globalforwardingrule
healthy_threshold: 10

View file

@ -13,7 +13,7 @@
#
# ----------------------------------------------------------------------------
# Pre-test setup
- name: delete a http health check
- name: delete a HTTP health check
gcp_compute_http_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -25,7 +25,7 @@
service_account_file: "{{ gcp_cred_file }}"
state: absent
#----------------------------------------------------------
- name: create a http health check
- name: create a HTTP health check
gcp_compute_http_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -56,7 +56,7 @@
that:
- results['resources'] | length == 1
# ----------------------------------------------------------------------------
- name: create a http health check that already exists
- name: create a HTTP health check that already exists
gcp_compute_http_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -73,7 +73,7 @@
that:
- result.changed == false
#----------------------------------------------------------
- name: delete a http health check
- name: delete a HTTP health check
gcp_compute_http_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -104,7 +104,7 @@
that:
- results['resources'] | length == 0
# ----------------------------------------------------------------------------
- name: delete a http health check that does not exist
- name: delete a HTTP health check that does not exist
gcp_compute_http_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10

View file

@ -13,7 +13,7 @@
#
# ----------------------------------------------------------------------------
# Pre-test setup
- name: delete a https health check
- name: delete a HTTPS health check
gcp_compute_https_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -25,7 +25,7 @@
service_account_file: "{{ gcp_cred_file }}"
state: absent
#----------------------------------------------------------
- name: create a https health check
- name: create a HTTPS health check
gcp_compute_https_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -56,7 +56,7 @@
that:
- results['resources'] | length == 1
# ----------------------------------------------------------------------------
- name: create a https health check that already exists
- name: create a HTTPS health check that already exists
gcp_compute_https_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -73,7 +73,7 @@
that:
- result.changed == false
#----------------------------------------------------------
- name: delete a https health check
- name: delete a HTTPS health check
gcp_compute_https_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10
@ -104,7 +104,7 @@
that:
- results['resources'] | length == 0
# ----------------------------------------------------------------------------
- name: delete a https health check that does not exist
- name: delete a HTTPS health check that does not exist
gcp_compute_https_health_check:
name: "{{ resource_name }}"
healthy_threshold: 10