Bump tftest version

Bump tftest version to 1.6.1 and ensure test runners can update
providers if needed and available.
This commit is contained in:
Julio Castillo 2021-12-15 15:12:43 +01:00
parent 601ebd028e
commit 36b277222d
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ def _plan_runner():
"Runs Terraform plan and returns parsed output."
tf = tftest.TerraformTest(fixture_path, BASEDIR,
os.environ.get('TERRAFORM', 'terraform'))
tf.setup()
tf.setup(upgrade=True)
return tf.plan(output=True, refresh=refresh, tf_vars=tf_vars, targets=targets)
return run_plan
@ -94,7 +94,7 @@ def apply_runner():
"Runs Terraform apply and returns parsed output"
tf = tftest.TerraformTest(fixture_path, BASEDIR,
os.environ.get('TERRAFORM', 'terraform'))
tf.setup()
tf.setup(upgrade=True)
apply = tf.apply(tf_vars=tf_vars)
output = tf.output(json_format=True)
return apply, output

View File

@ -1,4 +1,4 @@
pytest>=4.6.0
PyYAML>=5.3
tftest>=1.5.2
tftest>=1.6.1
marko>=0.9.1