Fix list of log config attributes to be tested
This commit is contained in:
parent
931af3e943
commit
aacb570ac8
|
@ -58,8 +58,9 @@ def test_subnet_log_configs(plan_runner):
|
||||||
for r in resources:
|
for r in resources:
|
||||||
if r['type'] != 'google_compute_subnetwork':
|
if r['type'] != 'google_compute_subnetwork':
|
||||||
continue
|
continue
|
||||||
flow_logs[r['values']['name']] = {key: r['values']['log_config'][key] for key in r['values']['log_config'].keys()
|
flow_logs[r['values']['name']] = [{key: config[key] for key in config.keys()
|
||||||
& {'aggregation_interval', 'flow_sampling', 'metadata'}}
|
& {'aggregation_interval', 'flow_sampling', 'metadata'}}
|
||||||
|
for config in r['values']['log_config']]
|
||||||
assert flow_logs == {
|
assert flow_logs == {
|
||||||
# enable, override one default option
|
# enable, override one default option
|
||||||
'a': [{
|
'a': [{
|
||||||
|
|
Loading…
Reference in New Issue