Merge lp://qastaging/~frankban/juju-quickstart/handle-jenv-envs into lp://qastaging/juju-quickstart
Status: | Merged |
---|---|
Merged at revision: | 109 |
Proposed branch: | lp://qastaging/~frankban/juju-quickstart/handle-jenv-envs |
Merge into: | lp://qastaging/juju-quickstart |
Diff against target: |
725 lines (+364/-80) 8 files modified
quickstart/app.py (+13/-15) quickstart/manage.py (+26/-12) quickstart/models/jenv.py (+85/-7) quickstart/tests/helpers.py (+49/-9) quickstart/tests/models/test_jenv.py (+141/-7) quickstart/tests/test_app.py (+22/-23) quickstart/tests/test_juju.py (+9/-0) quickstart/tests/test_manage.py (+19/-7) |
To merge this branch: | bzr merge lp://qastaging/~frankban/juju-quickstart/handle-jenv-envs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+244880@code.qastaging.launchpad.net |
Description of the change
Promote jenv files as first class envs.
Quickstart no longer refuses to use an environment
which is only present as a jenv file.
Add some more helper functions to the
Also retrieve the environment type, in the case
the environment is already bootstrapped, from
the WebSocket connection and not from the jenv:
jenv files are not assumed to include the type.
Tests: `make check`.
QA:
- use quickstart to bootstrap an environment:
`.venv/bin/python juju-quickstart`;
- re-run quickstart again to reopen the same environment:
`.venv/bin/python juju-quickstart`;
- in both cases, check auto-login works and the output
is sane;
- generate a new environment user and put the
resulting jenv in your Juju home:
`juju user add myuser --generate -o ~/.juju/
- use quickstart with the new environment:
`.venv/bin/python juju-quickstart -e myenv`;
- check that the new credentials are printed to stdout
and that the auto-login still works;
- destroy the environment.
Thanks a lot!
Reviewers: mp+244880_ code.launchpad. net,
Message:
Please take a look.
Description:
Promote jenv files as first class envs.
Quickstart no longer refuses to use an environment
which is only present as a jenv file.
Add some more helper functions to the
Also retrieve the environment type, in the case
the environment is already bootstrapped, from
the WebSocket connection and not from the jenv:
jenv files are not assumed to include the type.
Tests: `make check`.
QA: bin/python juju-quickstart`;
- use quickstart to bootstrap an environment:
`.venv/
- re-run quickstart again to reopen the same environment: bin/python juju-quickstart`;
`.venv/
- in both cases, check auto-login works and the output
is sane;
- generate a new environment user and put the environments/ myenv.jenv` ;
resulting jenv in your Juju home:
`juju user add myuser --generate -o ~/.juju/
- use quickstart with the new environment: bin/python juju-quickstart -e myenv`;
`.venv/
- check that the new credentials are printed to stdout
and that the auto-login still works;
- destroy the environment.
Thanks a lot!
https:/ /code.launchpad .net/~frankban/ juju-quickstart /handle- jenv-envs/ +merge/ 244880
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/188300043/
Affected files (+366, -80 lines): manage. py models/ jenv.py tests/helpers. py tests/models/ test_jenv. py tests/test_ app.py tests/test_ juju.py tests/test_ manage. py
A [revision details]
M quickstart/app.py
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/