-
Notifications
You must be signed in to change notification settings - Fork 77
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
COS integration testing: improve COS model lookup #1259
Conversation
There was a problem hiding this 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]}" |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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
2efc894
to
f1b1c3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Also, raise an error instead of skipping the test if no COS model found