Create fully recursive e2e test runner
This commit is contained in:
@@ -19,7 +19,7 @@ BASE_PATH = Path(__file__).parent
|
||||
EXPECTED_RESOURCES_RE = re.compile(r'# tftest modules=(\d+) resources=(\d+)')
|
||||
|
||||
|
||||
def test_example(doc_example_plan_runner, tmp_path, example):
|
||||
def test_example(recursive_e2e_plan_runner, tmp_path, example):
|
||||
(tmp_path / 'fabric').symlink_to(Path(BASE_PATH, '../../').resolve())
|
||||
(tmp_path / 'variables.tf').symlink_to(
|
||||
Path(BASE_PATH, 'variables.tf').resolve())
|
||||
@@ -29,6 +29,6 @@ def test_example(doc_example_plan_runner, tmp_path, example):
|
||||
expected_modules = int(match.group(1)) if match is not None else 1
|
||||
expected_resources = int(match.group(2)) if match is not None else 1
|
||||
|
||||
num_modules, num_resources = doc_example_plan_runner(str(tmp_path))
|
||||
num_modules, num_resources = recursive_e2e_plan_runner(str(tmp_path))
|
||||
assert expected_modules == num_modules
|
||||
assert expected_resources == num_resources
|
||||
|
||||
Reference in New Issue
Block a user