DescriptionAdd 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. #
MessagesTotal messages: 5
|