DescriptionPromote 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/environments/myenv.jenv`;
- 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!
https://code.launchpad.net/~frankban/juju-quickstart/handle-jenv-envs/+merge/244880
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 2
Patch Set 2 : Promote jenv files as first class envs. #
MessagesTotal messages: 6
|