Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport] Fix test for get_role_list (#1361) #1362

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions test/integration/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,8 @@ def test_get_role_list(project_fixtures, skipif_pre_ansible211):
containing our test role.
"""
pdir = str(project_fixtures / 'music' / 'project')
expected_role = {
"collection": "",
"entry_points": {
"main": "The main entry point for the Into_The_Mystic role."
}
expected = {
"main": "The main entry point for the Into_The_Mystic role."
}

resp, _ = get_role_list(playbook_dir=pdir)
Expand All @@ -457,7 +454,8 @@ def test_get_role_list(project_fixtures, skipif_pre_ansible211):
# So that tests can work locally, where multiple roles might be returned,
# we check for this single role.
assert 'Into_The_Mystic' in resp
assert resp['Into_The_Mystic'] == expected_role
assert 'entry_points' in resp['Into_The_Mystic']
assert resp['Into_The_Mystic']['entry_points'] == expected


@pytest.mark.test_all_runtimes
Expand Down
Loading