-
Notifications
You must be signed in to change notification settings - Fork 508
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
Change the text used to match the model-removed error #11144
Conversation
# has been removed from the controller...` - old_model only | ||
# contains the model name, hence the weird partial quoting so that | ||
# it matches. | ||
removed_error = b'{}" has been removed from the controller'.format(old_model) |
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.
Missing beginning double quote? Though I think the test will still work.
s/b'{}" has/b'"{}" has
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.
Perhaps I need an afternoon tea. Makes more sense after re-reading the comment.
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.
After chatting I think it's too confusing, tweaked it to just include the username admin
and the starting double quote instead.
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.
ran with success
The old_model we have only contains the model name, not the user-qualified one. Update the template to include the username (which is always admin for this test. We haven't been able to reproduce this error locally in a reliable way unfortunately.
cbe31eb
to
3df9181
Compare
|
#11151 ### Checklist - [x] Checked if it requires a [pylibjuju](https://github.com/juju/python-libjuju) change? - [x] Added [integration tests](https://github.com/juju/juju/tree/develop/tests) for the PR? - [x] Added or updated [doc.go](https://discourse.jujucharms.com/t/readme-in-packages/451) related to packages changed? - [x] Do comments answer the question of why design decisions were made? ---- ## Description of change This pulls the latest changes in the 2.7 branch into develop. Brings in: - #11139 from jameinel/2.7-detach-volume-state-changing-1860542 - #11141 from howbazaar/2.7-fix-provisioner-leak - #11144 from babbageclunk/2.7-fix-destroy-test - #11137 from ycliuhw/feature/vSphere-disk-resizing - #11146 from manadart/2.7-provisioner-worker-test - #11147 from manadart/relocate-systemd-files - #11150 from manadart/2.7-controller-integration-test - #11149 from manadart/2.7-systemd-upgrades (No conflicts when merging.)
Description of change
The old_model we have only contains the model name, not the user-qualified one. To ensure it matches the error that comes back with the user name, include the username in the template (it's always "admin" in the test).
Example of the error: https://jenkins.juju.canonical.com/job/nw-destroy-model-lxd/2210/console
We haven't been able to reproduce this error locally in a reliable way unfortunately, which is why there's a bit of churn in this test.
QA steps
Run the destroy-model test, it passes.
Documentation changes
None
Bug reference
None