Merge lp://staging/~hatch/charms/trusty/juju-gui/add-uuid-configjs into lp://staging/~juju-gui/charms/trusty/juju-gui/trunk

Proposed by Jeff Pihach
Status: Merged
Approved by: Jeff Pihach
Approved revision: 233
Merged at revision: 231
Proposed branch: lp://staging/~hatch/charms/trusty/juju-gui/add-uuid-configjs
Merge into: lp://staging/~juju-gui/charms/trusty/juju-gui/trunk
Diff against target: 94 lines (+19/-5)
6 files modified
Makefile (+1/-1)
config/config.js.template (+2/-1)
hooks/backend.py (+2/-1)
hooks/utils.py (+2/-1)
tests/test_backends.py (+2/-1)
tests/test_utils.py (+10/-0)
To merge this branch: bzr merge lp://staging/~hatch/charms/trusty/juju-gui/add-uuid-configjs
Reviewer Review Type Date Requested Status
Madison Scott-Clary (community) Approve
Francesco Banconi Approve
Review via email: mp+248826@code.staging.launchpad.net

Description of the change

Supply the config.js file with the value from the JUJU_ENV_UUID value in supported versions of Juju.

To QA:
Deploy this charm and check that the config.js file sent to the gui has a key juju_env_uuid with a populated uuid value.

To post a comment you must log in.
Revision history for this message
Francesco Banconi (frankban) wrote :

This branch looks good Jeff, thank you!
I have some minor comments, and I'd add a test for write_gui_config in test_utils.py:TestStartImprovAgentGui,
similar to test_write_gui_config_with_version_from_jujud, but exercising the juju_env_uuid value.

QA ok.

review: Approve
233. By Jeff Pihach

Added additional test for the write_gui_config method around the uuid support

Revision history for this message
Madison Scott-Clary (makyo) wrote :

This LGTM, thanks Jeff! No QA.

review: Approve
Revision history for this message
Jeff Pihach (hatch) wrote :

Thanks for the reviews!

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: