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

COS integration testing: improve COS model lookup #1259

Merged

Conversation

sabaini
Copy link
Contributor

@sabaini sabaini commented Aug 28, 2024

Also, raise an error instead of skipping the test if no COS model found

Copy link
Contributor

@UtkarshBhatthere UtkarshBhatthere left a comment

Choose a reason for hiding this comment

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

lgtm, Thanks @sabaini

await ctrl.disconnect()
if not cos_models:
return
return f"{k8s[0]}:{cos_models[0]}"
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: given that this method is supposed to only give 1 cos model (line 40), does it make sense to have a static key ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason why I didn't hardcode a static controller/model name is to give some flexibility for the test env. This way you could run the COS model in the same controller, or in another kubernetes controller and would also have some flexibility in naming

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@UtkarshBhatthere does this answer your question? Happy to discuss more if not

Copy link
Contributor

@lmlg lmlg left a comment

Choose a reason for hiding this comment

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

lgtm, just a nit.

Also, raise an error instead of skipping the test if no COS model found
@sabaini sabaini force-pushed the cos-integration-controller branch from 2efc894 to f1b1c3a Compare August 28, 2024 16:56
Copy link
Contributor

@UtkarshBhatthere UtkarshBhatthere left a comment

Choose a reason for hiding this comment

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

LGTM

@sabaini sabaini merged commit f8b4d09 into openstack-charmers:master Aug 29, 2024
3 checks passed
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.

3 participants