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

Added check for missing marketplaceProductCodes in instance identity. #345

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

narmaku
Copy link
Collaborator

@narmaku narmaku commented Oct 2, 2024

No description provided.

expected_billing_codes = ['bp-63a5400a']
else:
pytest.skip(
'Unable to decide billing codes as no "Hourly2" or "Access2" found in AMI name')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add ami_name to the message?


obtained_marketplace_product_codes = list(instance_data_aws_web['marketplaceProductCodes'])

print(f'marketplaceProductCodes = {obtained_billing_codes}')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy& paste issue?

marketplaceProductCodes vs obtained_billing_code

for code in billing_codes:
assert code in instance_data_aws_web['billingProducts'], \
'Expected billing code not found in instance document data'
assert len(obtained_marketplace_product_codes) > 1, 'List of marketplaceProductCodes is empty'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail for pre-release testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants