remove redundant extra_files parameter in tfvars tests

This commit is contained in:
Ludo
2022-11-06 08:39:53 +01:00
parent 199660b5f7
commit 6e4d8a46a1
2 changed files with 3 additions and 4 deletions

View File

@@ -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']

View File

@@ -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)