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

make lint test homogeneous for all versions #1928

Merged
merged 1 commit into from
Oct 17, 2023
Merged
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
5 changes: 1 addition & 4 deletions galaxy_ng/tests/integration/api/test_artifact_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,7 @@ def test_ansible_lint_exception(ansible_config, upload_artifact, hub_version):

log_messages = [item["message"] for item in resp["messages"]]

pattern = "Linting collection via ansible-lint" # hub 4.8, galaxy-importer 0.4.11
if parse_version(hub_version) < parse_version('4.7.0dev'):
pattern = "Linting role .* via ansible-lint" # 4.6, galaxy-importer 0.4.7

pattern = "Linting .* via ansible-lint"
linting_re = re.compile(pattern)
linting = [item for item in log_messages if linting_re.match(item)]
assert len(linting) == 1 # linting occurred
Expand Down
Loading