Skip to content

Commit

Permalink
Adapt test script: recommendations lead to warnings, not info
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Büchse <[email protected]>
  • Loading branch information
mbuechse committed Jan 9, 2024
1 parent 962547f commit 436b77e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/iaas/entropy/entropy-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def check_image_attributes(images, attributes=IMAGE_ATTRIBUTES):
for image in images:
wrong = [f"{key}={value}" for key, value in attributes.items() if image.get(key) != value]
if wrong:
logger.info(f"Image '{image.name}' missing recommended attributes: {', '.join(wrong)}")
logger.warning(f"Image '{image.name}' missing recommended attributes: {', '.join(wrong)}")


def check_flavor_attributes(flavors, attributes=FLAVOR_ATTRIBUTES, optional=FLAVOR_OPTIONAL):
Expand All @@ -77,7 +77,7 @@ def check_flavor_attributes(flavors, attributes=FLAVOR_ATTRIBUTES, optional=FLAV
# and if the recommended attributes are present, we assume that implementers have done their job already
if miss_opt:
message += f"; additionally, missing optional attributes: {', '.join(miss_opt)}"
logger.info(message)
logger.warning(message)


def install_test_requirements(fconn):
Expand Down

0 comments on commit 436b77e

Please sign in to comment.