Skip to content

Commit

Permalink
Bump ansible-compat from 2.0.2 to 2.1.0
Browse files Browse the repository at this point in the history
This bump also required updating one test as the role installation
location changed from older versions.
  • Loading branch information
dependabot[bot] authored and ssbarnea committed May 31, 2022
1 parent 188dfe8 commit 71834cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions src/molecule/test/functional/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 71834cf

Please sign in to comment.