diff --git a/requirements.txt b/requirements.txt index e3ffe60ded..fdb3c6194b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ # alabaster==0.7.12 ansi2html==1.7.0 -ansible-compat==2.0.2 +ansible-compat==2.1.0 ansible-core==2.13.0 ansible-pygments==0.1.1 arrow==1.2.2 @@ -32,9 +32,11 @@ filelock==3.7.0 idna==3.3 imagesize==1.3.0 importlib-metadata==4.11.4 +importlib-resources==5.7.1 iniconfig==1.1.1 jinja2==3.1.2 jinja2-time==0.2.0 +jsonschema==4.5.1 markupsafe==2.1.1 more-itertools==8.13.0 packaging==21.3 @@ -45,6 +47,7 @@ py==1.11.0 pycparser==2.21 pygments==2.12.0 pyparsing==3.0.9 +pyrsistent==0.18.1 pytest==7.1.2 pytest-cov==3.0.0 pytest-forked==1.4.0 diff --git a/src/molecule/test/functional/test_command.py b/src/molecule/test/functional/test_command.py index 8ecae551af..55f1f8b043 100644 --- a/src/molecule/test/functional/test_command.py +++ b/src/molecule/test/functional/test_command.py @@ -116,13 +116,12 @@ def test_command_converge(scenario_to_test, with_scenario, scenario_name): ) @pytest.mark.serial def test_command_create(scenario_to_test, with_scenario, scenario_name, tmp_path): - os.environ["ANSIBLE_ROLES_PATH"] = str(tmp_path) cmd = ["molecule", "create", "--scenario-name", scenario_name] assert run_command(cmd, env=os.environ).returncode == 0 - # Validate that ansible-compat created a symlink in the roles path - role_path = tmp_path / "molecule.delegated_test" - assert role_path.is_symlink() + role_list = run_command(["ansible-galaxy", "role", "list"], env=os.environ) + assert role_list.returncode == 0, role_list + assert "- molecule.delegated_test, (unknown version)" in role_list.stdout @pytest.mark.parametrize(