Adding namespace on integration tests + examples

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
Alex Stephen 2019-09-30 22:08:25 +00:00 committed by Modular Magician
commit 516fada880
130 changed files with 570 additions and 570 deletions

View file

@ -14,7 +14,7 @@
# ----------------------------------------------------------------------------
# Pre-test setup
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-targethttpsproxy
zone: us-central1-a
project: "{{ gcp_project }}"
@ -23,7 +23,7 @@
state: present
register: instancegroup
- name: create a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: httphealthcheck-targethttpsproxy
healthy_threshold: 10
port: 8080
@ -35,7 +35,7 @@
state: present
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-targethttpsproxy
backends:
- group: "{{ instancegroup.selfLink }}"
@ -48,7 +48,7 @@
state: present
register: backendservice
- name: create a URL map
gcp_compute_url_map:
google.cloud.gcp_compute_url_map:
name: urlmap-targethttpsproxy
default_service: "{{ backendservice }}"
project: "{{ gcp_project }}"
@ -57,7 +57,7 @@
state: present
register: urlmap
- name: create a SSL certificate
gcp_compute_ssl_certificate:
google.cloud.gcp_compute_ssl_certificate:
name: sslcert-targethttpsproxy
description: A certificate for testing. Do not use this certificate in production
certificate: |-
@ -90,7 +90,7 @@
state: present
register: sslcert
- name: delete a target HTTPS proxy
gcp_compute_target_https_proxy:
google.cloud.gcp_compute_target_https_proxy:
name: "{{ resource_name }}"
ssl_certificates:
- "{{ sslcert }}"
@ -101,7 +101,7 @@
state: absent
#----------------------------------------------------------
- name: create a target HTTPS proxy
gcp_compute_target_https_proxy:
google.cloud.gcp_compute_target_https_proxy:
name: "{{ resource_name }}"
ssl_certificates:
- "{{ sslcert }}"
@ -131,7 +131,7 @@
- results['resources'] | length == 1
# ----------------------------------------------------------------------------
- name: create a target HTTPS proxy that already exists
gcp_compute_target_https_proxy:
google.cloud.gcp_compute_target_https_proxy:
name: "{{ resource_name }}"
ssl_certificates:
- "{{ sslcert }}"
@ -147,7 +147,7 @@
- result.changed == false
#----------------------------------------------------------
- name: delete a target HTTPS proxy
gcp_compute_target_https_proxy:
google.cloud.gcp_compute_target_https_proxy:
name: "{{ resource_name }}"
ssl_certificates:
- "{{ sslcert }}"
@ -177,7 +177,7 @@
- results['resources'] | length == 0
# ----------------------------------------------------------------------------
- name: delete a target HTTPS proxy that does not exist
gcp_compute_target_https_proxy:
google.cloud.gcp_compute_target_https_proxy:
name: "{{ resource_name }}"
ssl_certificates:
- "{{ sslcert }}"
@ -195,7 +195,7 @@
# Post-test teardown
# If errors happen, don't crash the playbook!
- name: delete a SSL certificate
gcp_compute_ssl_certificate:
google.cloud.gcp_compute_ssl_certificate:
name: sslcert-targethttpsproxy
description: A certificate for testing. Do not use this certificate in production
certificate: |-
@ -229,7 +229,7 @@
register: sslcert
ignore_errors: true
- name: delete a URL map
gcp_compute_url_map:
google.cloud.gcp_compute_url_map:
name: urlmap-targethttpsproxy
default_service: "{{ backendservice }}"
project: "{{ gcp_project }}"
@ -239,7 +239,7 @@
register: urlmap
ignore_errors: true
- name: delete a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-targethttpsproxy
backends:
- group: "{{ instancegroup.selfLink }}"
@ -253,7 +253,7 @@
register: backendservice
ignore_errors: true
- name: delete a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: httphealthcheck-targethttpsproxy
healthy_threshold: 10
port: 8080
@ -266,7 +266,7 @@
register: healthcheck
ignore_errors: true
- name: delete a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-targethttpsproxy
zone: us-central1-a
project: "{{ gcp_project }}"