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

Change the text used to match the model-removed error #11144

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

babbageclunk
Copy link
Contributor

@babbageclunk babbageclunk commented Jan 22, 2020

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

# 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)
Copy link
Member

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

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

@hmlanigan hmlanigan left a 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.
@babbageclunk
Copy link
Contributor Author

$$merge$$

@jujubot jujubot merged commit bff6151 into juju:2.7 Jan 22, 2020
@babbageclunk babbageclunk deleted the 2.7-fix-destroy-test branch January 22, 2020 21:30
@babbageclunk babbageclunk mentioned this pull request Jan 26, 2020
4 tasks
jujubot added a commit that referenced this pull request Jan 26, 2020
#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.)
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