mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-23 13:20:30 -07:00
Adding namespace on integration tests + examples
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
6c7c5f4977
commit
516fada880
130 changed files with 570 additions and 570 deletions
|
@ -14,7 +14,7 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
# Pre-test setup
|
||||
- name: create a instance group
|
||||
gcp_compute_instance_group:
|
||||
google.cloud.gcp_compute_instance_group:
|
||||
name: instancegroup-targetsslproxy
|
||||
zone: us-central1-a
|
||||
project: "{{ gcp_project }}"
|
||||
|
@ -23,7 +23,7 @@
|
|||
state: present
|
||||
register: instancegroup
|
||||
- name: create a health check
|
||||
gcp_compute_health_check:
|
||||
google.cloud.gcp_compute_health_check:
|
||||
name: healthcheck-targetsslproxy
|
||||
type: TCP
|
||||
tcp_health_check:
|
||||
|
@ -39,7 +39,7 @@
|
|||
state: present
|
||||
register: healthcheck
|
||||
- name: create a backend service
|
||||
gcp_compute_backend_service:
|
||||
google.cloud.gcp_compute_backend_service:
|
||||
name: backendservice-targetsslproxy
|
||||
backends:
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
|
@ -52,7 +52,7 @@
|
|||
state: present
|
||||
register: backendservice
|
||||
- name: create a SSL certificate
|
||||
gcp_compute_ssl_certificate:
|
||||
google.cloud.gcp_compute_ssl_certificate:
|
||||
name: sslcert-targetsslproxy
|
||||
description: A certificate for testing. Do not use this certificate in production
|
||||
certificate: |-
|
||||
|
@ -85,7 +85,7 @@
|
|||
state: present
|
||||
register: sslcert
|
||||
- name: delete a target SSL proxy
|
||||
gcp_compute_target_ssl_proxy:
|
||||
google.cloud.gcp_compute_target_ssl_proxy:
|
||||
name: "{{ resource_name }}"
|
||||
ssl_certificates:
|
||||
- "{{ sslcert }}"
|
||||
|
@ -96,7 +96,7 @@
|
|||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a target SSL proxy
|
||||
gcp_compute_target_ssl_proxy:
|
||||
google.cloud.gcp_compute_target_ssl_proxy:
|
||||
name: "{{ resource_name }}"
|
||||
ssl_certificates:
|
||||
- "{{ sslcert }}"
|
||||
|
@ -126,7 +126,7 @@
|
|||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a target SSL proxy that already exists
|
||||
gcp_compute_target_ssl_proxy:
|
||||
google.cloud.gcp_compute_target_ssl_proxy:
|
||||
name: "{{ resource_name }}"
|
||||
ssl_certificates:
|
||||
- "{{ sslcert }}"
|
||||
|
@ -142,7 +142,7 @@
|
|||
- result.changed == false
|
||||
#----------------------------------------------------------
|
||||
- name: delete a target SSL proxy
|
||||
gcp_compute_target_ssl_proxy:
|
||||
google.cloud.gcp_compute_target_ssl_proxy:
|
||||
name: "{{ resource_name }}"
|
||||
ssl_certificates:
|
||||
- "{{ sslcert }}"
|
||||
|
@ -172,7 +172,7 @@
|
|||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a target SSL proxy that does not exist
|
||||
gcp_compute_target_ssl_proxy:
|
||||
google.cloud.gcp_compute_target_ssl_proxy:
|
||||
name: "{{ resource_name }}"
|
||||
ssl_certificates:
|
||||
- "{{ sslcert }}"
|
||||
|
@ -190,7 +190,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-targetsslproxy
|
||||
description: A certificate for testing. Do not use this certificate in production
|
||||
certificate: |-
|
||||
|
@ -224,7 +224,7 @@
|
|||
register: sslcert
|
||||
ignore_errors: true
|
||||
- name: delete a backend service
|
||||
gcp_compute_backend_service:
|
||||
google.cloud.gcp_compute_backend_service:
|
||||
name: backendservice-targetsslproxy
|
||||
backends:
|
||||
- group: "{{ instancegroup.selfLink }}"
|
||||
|
@ -238,7 +238,7 @@
|
|||
register: backendservice
|
||||
ignore_errors: true
|
||||
- name: delete a health check
|
||||
gcp_compute_health_check:
|
||||
google.cloud.gcp_compute_health_check:
|
||||
name: healthcheck-targetsslproxy
|
||||
type: TCP
|
||||
tcp_health_check:
|
||||
|
@ -255,7 +255,7 @@
|
|||
register: healthcheck
|
||||
ignore_errors: true
|
||||
- name: delete a instance group
|
||||
gcp_compute_instance_group:
|
||||
google.cloud.gcp_compute_instance_group:
|
||||
name: instancegroup-targetsslproxy
|
||||
zone: us-central1-a
|
||||
project: "{{ gcp_project }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue