From 7fb64edcc5a62c407bb7c691ab7528f1b7d4cadd Mon Sep 17 00:00:00 2001 From: Yusuke Tsutsumi Date: Sat, 8 Oct 2022 18:40:05 +0000 Subject: [PATCH] tests: fix gcp_compute_region_url_map - remove the global health check (not necessary to create a backend service) - configure backend service to external, as internal backend services cannot use the HTTP protocol. --- .../gcp_compute_region_url_map/aliases | 3 +- .../tasks/autogen.yml | 35 ++----------------- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/tests/integration/targets/gcp_compute_region_url_map/aliases b/tests/integration/targets/gcp_compute_region_url_map/aliases index 9812f01..0e4419e 100644 --- a/tests/integration/targets/gcp_compute_region_url_map/aliases +++ b/tests/integration/targets/gcp_compute_region_url_map/aliases @@ -1,2 +1 @@ -cloud/gcp -unsupported +cloud/gcp \ No newline at end of file diff --git a/tests/integration/targets/gcp_compute_region_url_map/tasks/autogen.yml b/tests/integration/targets/gcp_compute_region_url_map/tasks/autogen.yml index b47476c..75e998c 100644 --- a/tests/integration/targets/gcp_compute_region_url_map/tasks/autogen.yml +++ b/tests/integration/targets/gcp_compute_region_url_map/tasks/autogen.yml @@ -13,29 +13,15 @@ # # ---------------------------------------------------------------------------- # Pre-test setup -- name: create a health check - google.cloud.gcp_compute_health_check: - name: "{{ resource_name }}" - type: HTTP - http_health_check: - port: 80 - check_interval_sec: 1 - timeout_sec: 1 - project: "{{ gcp_project }}" - auth_kind: "{{ gcp_cred_kind }}" - service_account_file: "{{ gcp_cred_file }}" - state: present - register: healthcheck - name: create a region backend service google.cloud.gcp_compute_region_backend_service: name: "{{ resource_name }}" region: us-central1 - health_checks: - - "{{ healthcheck.selfLink }}" protocol: HTTP project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" service_account_file: "{{ gcp_cred_file }}" + load_balancing_scheme: "EXTERNAL" state: present register: backendservice - name: delete a region URL map @@ -144,26 +130,11 @@ google.cloud.gcp_compute_region_backend_service: name: "{{ resource_name }}" region: us-central1 - health_checks: - - "{{ healthcheck.selfLink }}" protocol: HTTP project: "{{ gcp_project }}" auth_kind: "{{ gcp_cred_kind }}" service_account_file: "{{ gcp_cred_file }}" + load_balancing_scheme: "EXTERNAL" state: absent register: backendservice - ignore_errors: true -- name: delete a health check - google.cloud.gcp_compute_health_check: - name: "{{ resource_name }}" - type: HTTP - http_health_check: - port: 80 - check_interval_sec: 1 - timeout_sec: 1 - project: "{{ gcp_project }}" - auth_kind: "{{ gcp_cred_kind }}" - service_account_file: "{{ gcp_cred_file }}" - state: absent - register: healthcheck - ignore_errors: true + ignore_errors: true \ No newline at end of file