Bug fixes for GCP modules (#58901)

This commit is contained in:
The Magician 2019-07-12 13:21:44 -07:00 committed by ansibot
parent 119b8521a6
commit 51e1b090db
12 changed files with 6 additions and 28 deletions

View file

@ -157,7 +157,7 @@ EXAMPLES = '''
- name: create a region disk
gcp_compute_region_disk:
name: test_object
size_gb: 50
size_gb: 500
disk_encryption_key:
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
region: us-central1

View file

@ -151,7 +151,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that global_forwarding_rule was deleted
gcp_compute_global_forwarding_rule_facts:
filters:
@ -183,7 +182,6 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False
#---------------------------------------------------------
# Post-test teardown
# If errors happen, don't crash the playbook!

View file

@ -107,7 +107,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that health_check was deleted
gcp_compute_health_check_facts:
filters:
@ -143,4 +142,3 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False

View file

@ -91,7 +91,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that http_health_check was deleted
gcp_compute_http_health_check_facts:
filters:
@ -123,4 +122,3 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False

View file

@ -91,7 +91,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that https_health_check was deleted
gcp_compute_https_health_check_facts:
filters:
@ -123,4 +122,3 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False

View file

@ -88,7 +88,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that image was deleted
gcp_compute_image_facts:
filters:
@ -117,7 +116,6 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False
#---------------------------------------------------------
# Post-test teardown
# If errors happen, don't crash the playbook!

View file

@ -172,7 +172,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that instance was deleted
gcp_compute_instance_facts:
filters:
@ -218,7 +217,6 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False
#---------------------------------------------------------
# Post-test teardown
# If errors happen, don't crash the playbook!

View file

@ -104,7 +104,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that instance_group was deleted
gcp_compute_instance_group_facts:
filters:
@ -138,7 +137,6 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False
#---------------------------------------------------------
# Post-test teardown
# If errors happen, don't crash the playbook!

View file

@ -130,7 +130,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that instance_group_manager was deleted
gcp_compute_instance_group_manager_facts:
filters:
@ -163,7 +162,6 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False
#---------------------------------------------------------
# Post-test teardown
# If errors happen, don't crash the playbook!

View file

@ -144,7 +144,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that instance_template was deleted
gcp_compute_instance_template_facts:
filters:
@ -185,7 +184,6 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False
#---------------------------------------------------------
# Post-test teardown
# If errors happen, don't crash the playbook!

View file

@ -79,7 +79,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that network was deleted
gcp_compute_network_facts:
filters:
@ -108,4 +107,3 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False

View file

@ -16,7 +16,7 @@
- name: delete a region disk
gcp_compute_region_disk:
name: "{{ resource_name }}"
size_gb: 50
size_gb: 500
disk_encryption_key:
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
region: us-central1
@ -31,7 +31,7 @@
- name: create a region disk
gcp_compute_region_disk:
name: "{{ resource_name }}"
size_gb: 50
size_gb: 500
disk_encryption_key:
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
region: us-central1
@ -67,7 +67,7 @@
- name: create a region disk that already exists
gcp_compute_region_disk:
name: "{{ resource_name }}"
size_gb: 50
size_gb: 500
disk_encryption_key:
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
region: us-central1
@ -88,7 +88,7 @@
- name: delete a region disk
gcp_compute_region_disk:
name: "{{ resource_name }}"
size_gb: 50
size_gb: 500
disk_encryption_key:
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
region: us-central1
@ -104,7 +104,6 @@
assert:
that:
- result.changed == true
- result.has_key('kind') == False
- name: verify that region_disk was deleted
gcp_compute_region_disk_facts:
filters:
@ -124,7 +123,7 @@
- name: delete a region disk that does not exist
gcp_compute_region_disk:
name: "{{ resource_name }}"
size_gb: 50
size_gb: 500
disk_encryption_key:
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
region: us-central1
@ -140,4 +139,3 @@
assert:
that:
- result.changed == false
- result.has_key('kind') == False