Merge lp://staging/~gary/charms/precise/juju-gui/credentialConfig into lp://staging/~juju-gui/charms/precise/juju-gui/trunk

Proposed by Gary Poster
Status: Merged
Merged at revision: 111
Proposed branch: lp://staging/~gary/charms/precise/juju-gui/credentialConfig
Merge into: lp://staging/~juju-gui/charms/precise/juju-gui/trunk
Diff against target: 447 lines (+331/-16)
8 files modified
Makefile (+2/-1)
config.yaml (+5/-0)
hooks/backend.py (+2/-1)
hooks/charmhelpers.py (+288/-0)
hooks/install (+3/-6)
hooks/utils.py (+7/-7)
tests/00-setup (+2/-1)
tests/test_utils.py (+22/-0)
To merge this branch: bzr merge lp://staging/~gary/charms/precise/juju-gui/credentialConfig
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+188670@code.staging.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Gary Poster (gary) wrote :

Reviewers: mp+188670_code.launchpad.net,

Message:
Please take a look.

Description:
Add password option to charm

In order to support ecosystems work, add a password option that lets the
charm pre-fill the password in the GUI.

To QA, start up the charm, and verify that you need to enter your
password in the GUI. Do not log in, or if you do, log out afterwards.
Next, juju set juju-gui password=[YOUR ADMIN SECRET] and wait about 20
seconds for the charm to reconfigure itself. Then go to the browser
again and you should not have to log in.

https://code.launchpad.net/~gary/charms/precise/juju-gui/credentialConfig/+merge/188670

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/14226043/

Affected files (+333, -16 lines):
   M Makefile
   A [revision details]
   M config.yaml
   M hooks/backend.py
   A hooks/charmhelpers.py
   M hooks/install
   M hooks/utils.py
   M tests/00-setup
   M tests/test_utils.py

Revision history for this message
Gary Poster (gary) wrote :

Added comment

https://codereview.appspot.com/14226043/diff/1/hooks/charmhelpers.py
File hooks/charmhelpers.py (right):

https://codereview.appspot.com/14226043/diff/1/hooks/charmhelpers.py#newcode4
hooks/charmhelpers.py:4: # This file is taken from the
python-charmhelpers package. It is possibly no
I added this file because tests wouldn't pass without it even though it
was installed on my system, and for the reasons I describe in the
comment. Please only review the comments I added. The rest is
unnecessary.

https://codereview.appspot.com/14226043/

Revision history for this message
Gary Poster (gary) wrote :

*** Submitted:

Add password option to charm

In order to support ecosystems work, add a password option that lets the
charm pre-fill the password in the GUI.

To QA, start up the charm, and verify that you need to enter your
password in the GUI. Do not log in, or if you do, log out afterwards.
Next, juju set juju-gui password=[YOUR ADMIN SECRET] and wait about 20
seconds for the charm to reconfigure itself. Then go to the browser
again and you should not have to log in.

R=
CC=
https://codereview.appspot.com/14226043

https://codereview.appspot.com/14226043/

Revision history for this message
Gary Poster (gary) wrote :

On 2013/10/01 19:21:33, benji wrote:
> LGTM

> https://codereview.appspot.com/14226043/diff/1/Makefile
> File Makefile (right):

> https://codereview.appspot.com/14226043/diff/1/Makefile#newcode20
> Makefile:20: libpython-dev
> Most of the other line continuations use a tab and then four spaces.
Mixing
> tabs and spaces isn't the greatest thing in the world, but neither are
the deep,
> deep indents caused by all-tabs-all-the-time. I'm cool either way.

> https://codereview.appspot.com/14226043/diff/1/hooks/install
> File hooks/install (right):

> https://codereview.appspot.com/14226043/diff/1/hooks/install#newcode24
> hooks/install:24: # We need to install the Juju PPA, which we will do
with a
> It looks like this needs to be word wrapped with the line below.

Argh, sorry, I missed that you had requested changes. Fixing.

https://codereview.appspot.com/14226043/

Revision history for this message
Gary Poster (gary) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: