Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed Aug 8, 2024
1 parent a2d30df commit 1410ead
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/examples_e2e/test_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def test_example(e2e_validator, tmp_path, examples_e2e, e2e_tfvars_path):
(tmp_path / 'terraform.tfvars').symlink_to(e2e_tfvars_path)

# add files the same way as it is done for examples
directive, _, kwargs = get_tftest_directive(examples_e2e.code)
if directive == 'tftest':
prepare_files(examples_e2e, tmp_path, kwargs.get('files'),
kwargs.get('fixtures'))
directive = get_tftest_directive(examples_e2e.code)
if directive and directive.name == 'tftest':
prepare_files(examples_e2e, tmp_path, directive.kwargs.get('files'),
directive.kwargs.get('fixtures'))

e2e_validator(module_path=tmp_path, extra_files=[],
tf_var_files=[(tmp_path / 'terraform.tfvars')])

0 comments on commit 1410ead

Please sign in to comment.