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:
parent
601ebd028e
commit
36b277222d
|
@ -30,7 +30,7 @@ def _plan_runner():
|
||||||
"Runs Terraform plan and returns parsed output."
|
"Runs Terraform plan and returns parsed output."
|
||||||
tf = tftest.TerraformTest(fixture_path, BASEDIR,
|
tf = tftest.TerraformTest(fixture_path, BASEDIR,
|
||||||
os.environ.get('TERRAFORM', 'terraform'))
|
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 tf.plan(output=True, refresh=refresh, tf_vars=tf_vars, targets=targets)
|
||||||
|
|
||||||
return run_plan
|
return run_plan
|
||||||
|
@ -94,7 +94,7 @@ def apply_runner():
|
||||||
"Runs Terraform apply and returns parsed output"
|
"Runs Terraform apply and returns parsed output"
|
||||||
tf = tftest.TerraformTest(fixture_path, BASEDIR,
|
tf = tftest.TerraformTest(fixture_path, BASEDIR,
|
||||||
os.environ.get('TERRAFORM', 'terraform'))
|
os.environ.get('TERRAFORM', 'terraform'))
|
||||||
tf.setup()
|
tf.setup(upgrade=True)
|
||||||
apply = tf.apply(tf_vars=tf_vars)
|
apply = tf.apply(tf_vars=tf_vars)
|
||||||
output = tf.output(json_format=True)
|
output = tf.output(json_format=True)
|
||||||
return apply, output
|
return apply, output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
pytest>=4.6.0
|
pytest>=4.6.0
|
||||||
PyYAML>=5.3
|
PyYAML>=5.3
|
||||||
tftest>=1.5.2
|
tftest>=1.6.1
|
||||||
marko>=0.9.1
|
marko>=0.9.1
|
||||||
|
|
Loading…
Reference in New Issue