From aacb570ac8b14cff12efc6f3802fe2e37b91d4bc Mon Sep 17 00:00:00 2001 From: Aleksandr Averbukh Date: Tue, 1 Sep 2020 15:00:16 +0200 Subject: [PATCH] Fix list of log config attributes to be tested --- tests/modules/net_vpc/test_plan_subnets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/modules/net_vpc/test_plan_subnets.py b/tests/modules/net_vpc/test_plan_subnets.py index 37be4e5c6..2d14f6f53 100644 --- a/tests/modules/net_vpc/test_plan_subnets.py +++ b/tests/modules/net_vpc/test_plan_subnets.py @@ -58,8 +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']] = {key: r['values']['log_config'][key] for key in r['values']['log_config'].keys() - & {'aggregation_interval', 'flow_sampling', 'metadata'}} + 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': [{