-
Notifications
You must be signed in to change notification settings - Fork 102
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 #1038 from Aflynn50/fix-consume
#1038 #### Description `consume` takes a `controller_name` argument. This is not needed and should be automatically generated from the offer url. A deprecation warning is logged and the variable is not used. Also update offer and consume integration tests to no longer be skipped. This helps avoid #1031 #### QA Steps ``` juju bootstrap lxd c1 juju add-model offerer juju deploy juju-qa-dummy-source dummy-source juju offer dummy-source:sink juju bootstrap lxd c2 python -m asyncio # In REPL from juju import model m = model.Model() await m.connect() await m.consume("c1:admin/offerer.dummy-source") # Exit REPL juju status # Confirm SAAS exists juju remove-saas dummy-source # Confirm removal python -m asyncio # In REPL from juju import model m = model.Model() await m.connect() await m.consume("admin/offerer.dummy-source", controller_name="c1") # Exit REPL juju status # Confirm SAAS exists juju remove-saas dummy-source # Confirm removal python -m asyncio # In REPL from juju import model m = model.Model() await m.connect() await m.consume("c1:admin/offerer.dummy-source", controller_name="c1") ``` All CI tests need to pass.
- Loading branch information
Showing
2 changed files
with
77 additions
and
5 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