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

Issue 188890043: Add the Juju version to the GUI config file.

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

Description

Add the Juju version to the GUI config file. The version can be specified using a charm option. If not specified, the Juju version is retrieved dynamically by calling jujud --version. Initial implementation by Huw. Tests: `make unittest`. QA: - bootstrap an environment; - run `make deploy`; - wait for the unit to be ready; - run `juju ssh juju-gui/0 cat /var/lib/juju-gui/juju-gui/build-prod/juju-ui/assets/config.js` and check the Juju version is included in the config file; - run `juju set juju-gui juju-core-version=42.47`; - check the version is changed to the one specified; - run `juju unset juju-gui juju-core-version`; - check the correct version is back in the config file; - destroy the environment. Done, thank you! https://code.launchpad.net/~frankban/charms/trusty/juju-gui/config-version/+merge/244273 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Add the Juju version to the GUI config file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M config.yaml View 1 chunk +6 lines, -0 lines 0 comments Download
M config/config.js.template View 1 chunk +2 lines, -1 line 0 comments Download
M hooks/backend.py View 1 chunk +1 line, -0 lines 0 comments Download
M hooks/utils.py View 3 chunks +5 lines, -1 line 0 comments Download
M tests/test_backends.py View 2 chunks +2 lines, -0 lines 0 comments Download
M tests/test_utils.py View 3 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 5
frankban
Please take a look.
9 years, 4 months ago (2014-12-10 11:46:50 UTC) #1
rharding
:+1: will QA
9 years, 4 months ago (2014-12-10 13:10:40 UTC) #2
rharding
On 2014/12/10 13:10:40, rharding wrote: > :+1: will QA QA OK thank you! LGTM
9 years, 4 months ago (2014-12-10 13:51:59 UTC) #3
frankban
Thanks Rick for the review and QA!
9 years, 4 months ago (2014-12-10 14:01:09 UTC) #4
frankban
9 years, 4 months ago (2014-12-10 14:03:56 UTC) #5
*** Submitted:

Add the Juju version to the GUI config file.

The version can be specified using a charm option.
If not specified, the Juju version is retrieved 
dynamically by calling jujud --version.

Initial implementation by Huw.

Tests: `make unittest`.

QA:
- bootstrap an environment;
- run `make deploy`;
- wait for the unit to be ready;
- run `juju ssh juju-gui/0 cat
/var/lib/juju-gui/juju-gui/build-prod/juju-ui/assets/config.js`
  and check the Juju version is included in the config file;
- run `juju set juju-gui juju-core-version=42.47`;
- check the version is changed to the one specified;
- run `juju unset juju-gui juju-core-version`;
- check the correct version is back in the config file;
- destroy the environment.

Done, thank you!

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

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