tests: fix gcp_compute_vpn_tunnel

- vpn_gateway required minimal changes (stop using legacy load
  balancers)
- compute_vpn_tunnel requires a valid vpn configuration
  (several dependent forwarding rules and configuration to set up a
  proper tunnel).
This commit is contained in:
Yusuke Tsutsumi 2022-11-19 20:05:46 +00:00 committed by Yusuke Tsutsumi
commit ebf095d22d
6 changed files with 229 additions and 14 deletions

View file

@ -1,2 +1 @@
cloud/gcp
unsupported
cloud/gcp

View file

@ -28,6 +28,7 @@
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}"
auto_create_subnetworks: true
state: present
register: network
- name: delete a target vpn gateway
@ -138,6 +139,7 @@
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}"
auto_create_subnetworks: true
state: absent
register: network
ignore_errors: true