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

[CPREQ-8729] Improve paas_check_detected_incorrect_packages_versions_explanation #609

Merged
merged 4 commits into from
Mar 11, 2024
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: 3 additions & 2 deletions kubemarine/procedures/check_paas.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ def check_packages_versions(cluster: KubernetesCluster, tc: TestCase, hosts_to_p
if version.startswith(package_name):
good_results.append(version)
else:
bad_results.append(version)
bad_results.append(f"Actual version: {version} doesn't match expected package version: {package}")


if bad_results:
hint_message = f'Check the presence and correctness of the version of the following packages on the ' \
f'system: {bad_results}'
f'system: {bad_results}\n'
if warn_on_bad_result:
raise TestWarn("detected incorrect packages versions", hint=hint_message)
raise TestFailure("detected incorrect packages versions", hint=hint_message)
Expand Down
Loading