-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18016 from Aflynn50/remove-usage-of-model-users
juju#18016 The model user collection is being removed in the move to 4.0. Usages of it are being replaced with `GetModelUsers` on the model service and the collection in mongo will soon be deleted. <!-- The PR title should match: <type>(optional <scope>): <description>. Please also ensure all commits in this PR comply with our conventional commits specification: https://docs.google.com/document/d/1SYUo9G7qZ_jdoVXpUVamS5VCgHmtZ0QA-wZxKoMS-C0 --> <!-- Why this change is needed and what it does. --> ## Checklist <!-- If an item is not applicable, use `~strikethrough~`. --> - [x] Code style: imports ordered, good names, simple structure, etc - [x] Comments saying why design decisions were made - [x] Go unit tests, with comments saying what you're testing - [x] [Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing - [ ] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages ## QA steps ``` $ juju bootstrap lxd model-user-source $ juju bootstrap lxd model-user-target $ juju switch model-user-source $ juju add-model test $ juju add-user bob $ juju add-user jim $ juju grant bob admin test $ juju grant jim read test $ juju switch model-user-target $ juju add-user bob $ juju add-user jim $ juju migrate Migration started with ID "d66f7870-c51a-4443-8a63-288574cb98f2:0" $ model-user-target:test juju show-model test test: name: admin/test short-name: test model-uuid: d66f7870-c51a-4443-8a63-288574cb98f2 model-type: iaas controller-uuid: 762f6a2e-2b91-46c5-8d5e-6794d08ec037 controller-name: model-user-target is-controller: false owner: admin cloud: lxd region: default type: lxd life: alive status: current: available since: 54 seconds ago users: admin: display-name: admin access: admin last-connection: 21 seconds ago bob: access: write last-connection: never connected jim: access: read last-connection: never connected $ juju switch model-user-source $ juju status ERROR Model "admin/test" has been migrated to controller "model-user-target". To access it run 'juju switch model-user-target:admin/test'. ``` <!-- Describe steps to verify that the change works. --> ## Links <!-- Link to all relevant specification, documentation, bug, issue or JIRA card. --> **Jira card:** [JUJU-6533](https://warthogs.atlassian.net/browse/JUJU-6533) [JUJU-6533]: https://warthogs.atlassian.net/browse/JUJU-6533?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
10 changed files
with
17 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
apiserver/facades/controller/migrationmaster/mocks/state.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters