From 6e4d8a46a1f815c1937ffc380ede4ef445ce55e9 Mon Sep 17 00:00:00 2001 From: Ludo Date: Sun, 6 Nov 2022 08:39:53 +0100 Subject: [PATCH] remove redundant extra_files parameter in tfvars tests --- tests/modules/net_vpc_firewall/test_plan.py | 3 +-- tests/modules/organization/test_plan_org_policies.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/modules/net_vpc_firewall/test_plan.py b/tests/modules/net_vpc_firewall/test_plan.py index cc928e644..f164d02c3 100644 --- a/tests/modules/net_vpc_firewall/test_plan.py +++ b/tests/modules/net_vpc_firewall/test_plan.py @@ -31,8 +31,7 @@ def test_defaults(plan_runner): def test_rules(plan_runner): "Test custom rules." - tfvars = 'test.rules.tfvars' - _, resources = plan_runner(extra_files=[tfvars], tf_var_file=tfvars) + _, resources = plan_runner(tf_var_file='test.rules.tfvars') assert len(resources) == 3 rules = {r['index']: r['values'] for r in resources} rule = rules['allow-ingress-ntp'] diff --git a/tests/modules/organization/test_plan_org_policies.py b/tests/modules/organization/test_plan_org_policies.py index 186bd6de5..8267106fd 100644 --- a/tests/modules/organization/test_plan_org_policies.py +++ b/tests/modules/organization/test_plan_org_policies.py @@ -20,14 +20,14 @@ from .validate_policies import validate_policy_boolean, validate_policy_list def test_policy_boolean(plan_runner): "Test boolean org policy." tfvars = 'test.orgpolicies-boolean.tfvars' - _, resources = plan_runner(extra_files=[tfvars], tf_var_file=tfvars) + _, resources = plan_runner(tf_var_file=tfvars) validate_policy_boolean(resources) def test_policy_list(plan_runner): "Test list org policy." tfvars = 'test.orgpolicies-list.tfvars' - _, resources = plan_runner(extra_files=[tfvars], tf_var_file=tfvars) + _, resources = plan_runner(tf_var_file=tfvars) validate_policy_list(resources)