Merge pull request #132 from terraform-google-modules/vpn-ha-optional-gateway

Make VPN Gateway creation optional for the net-vpn-ha module
This commit is contained in:
Aleksandr Averbukh
2020-09-01 16:32:14 +02:00
committed by GitHub
6 changed files with 55 additions and 22 deletions

View File

@@ -58,7 +58,9 @@ def test_subnet_log_configs(plan_runner):
for r in resources:
if r['type'] != 'google_compute_subnetwork':
continue
flow_logs[r['values']['name']] = r['values']['log_config']
flow_logs[r['values']['name']] = [{key: config[key] for key in config.keys()
& {'aggregation_interval', 'flow_sampling', 'metadata'}}
for config in r['values']['log_config']]
assert flow_logs == {
# enable, override one default option
'a': [{