Skip to content

Commit

Permalink
[CPREQ-8729] Improve paas_check_detected_incorrect_packages_versions_…
Browse files Browse the repository at this point in the history
…explanation (#609)

* update_func_check_packages_versions

* Update check_paas.py

* comment_fix

* rephrase_package
  • Loading branch information
nikhil1697 authored Mar 11, 2024
1 parent 3113c15 commit acdfd84
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit acdfd84

Please sign in to comment.