-
Notifications
You must be signed in to change notification settings - Fork 5
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
[DPE-4179, DPE-4219] Add integration test for upgrades #135
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.
Wow, very nice! Thank you!
P.S. I would add in the future: deploy stable, upgrade to edge(PR). But sure... after stable VM release.
def get_application_name(ops_test: OpsTest, application_name_substring: str) -> str: | ||
"""Returns the name of the application with the provided application name. | ||
|
||
This enables us to retrieve the name of the deployed application in an existing model. | ||
|
||
Note: if multiple applications with the application name exist, | ||
the first one found will be returned. | ||
""" | ||
for application in ops_test.model.applications: | ||
if application_name_substring == application: | ||
return application | ||
|
||
return "" |
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.
what is the purpose of this?
to check if application is deployed? if so, can you check application in ops_test.model.applications
?
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.
it is a helper function that is imported from mysql vm. i'd like to keep as many helpers the same as we can, so we can easily refactor them into common code in the future if necessary
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.
Nice
Issue
We do not have integration tests for upgrade
Solution
Add integration tests