add compatabilty for 0.10.0
This commit is contained in:
parent
3b5fe8203e
commit
3c700b9830
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,8 @@ class TestTerraform(object):
|
||||||
])
|
])
|
||||||
def test_apply(self, folder, variables, var_files, expected_output, options):
|
def test_apply(self, folder, variables, var_files, expected_output, options):
|
||||||
tf = Terraform(working_dir=current_path, variables=variables, var_file=var_files)
|
tf = Terraform(working_dir=current_path, variables=variables, var_file=var_files)
|
||||||
|
# after 0.10.0 we always need to init
|
||||||
|
tf.init(folder)
|
||||||
ret, out, err = tf.apply(folder, **options)
|
ret, out, err = tf.apply(folder, **options)
|
||||||
assert ret == 0
|
assert ret == 0
|
||||||
assert expected_output in out.replace('\n', '').replace(' ', '')
|
assert expected_output in out.replace('\n', '').replace(' ', '')
|
||||||
|
|
Loading…
Reference in a new issue