Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5300)

Issue 188300043: Promote jenv files as first class envs.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 4 months ago by frankban
Modified:
9 years, 4 months ago
Reviewers:
bac, rharding, mp+244880
Visibility:
Public.

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: - 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -80 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M quickstart/app.py View 2 chunks +13 lines, -15 lines 0 comments Download
M quickstart/manage.py View 7 chunks +26 lines, -12 lines 0 comments Download
M quickstart/models/jenv.py View 5 chunks +85 lines, -7 lines 0 comments Download
M quickstart/tests/helpers.py View 4 chunks +49 lines, -9 lines 0 comments Download
M quickstart/tests/models/test_jenv.py View 4 chunks +141 lines, -7 lines 0 comments Download
M quickstart/tests/test_app.py View 3 chunks +22 lines, -23 lines 0 comments Download
M quickstart/tests/test_juju.py View 1 chunk +9 lines, -0 lines 0 comments Download
M quickstart/tests/test_manage.py View 4 chunks +19 lines, -7 lines 0 comments Download

Messages

Total messages: 6
frankban
Please take a look.
9 years, 4 months ago (2014-12-16 16:32:20 UTC) #1
bac
LGTM. WIll QA next. https://codereview.appspot.com/188300043/diff/1/quickstart/manage.py File quickstart/manage.py (right): https://codereview.appspot.com/188300043/diff/1/quickstart/manage.py#newcode241 quickstart/manage.py:241: # If the environment was ...
9 years, 4 months ago (2014-12-16 17:36:38 UTC) #2
bac
QA was OK. Note juju will not let you destroy the environment with the generated ...
9 years, 4 months ago (2014-12-16 17:47:16 UTC) #3
rharding
LGTM
9 years, 4 months ago (2014-12-16 21:04:12 UTC) #4
frankban
Thanks for the reviews! https://codereview.appspot.com/188300043/diff/1/quickstart/manage.py File quickstart/manage.py (right): https://codereview.appspot.com/188300043/diff/1/quickstart/manage.py#newcode241 quickstart/manage.py:241: # If the environment was ...
9 years, 4 months ago (2014-12-16 22:06:52 UTC) #5
frankban
9 years, 4 months ago (2014-12-16 22:08:02 UTC) #6
*** Submitted:

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/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!

R=bac, rharding
CC=
https://codereview.appspot.com/188300043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b