lp://staging/~huwshimi/charms/trusty/juju-gui/config-version

Created by Huw Wilkins and last modified
Get this branch:
bzr branch lp://staging/~huwshimi/charms/trusty/juju-gui/config-version
Only Huw Wilkins can upload to this branch. If you are Huw Wilkins please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Huw Wilkins
Status:
Development

Recent revisions

223. By Huw Wilkins

WIP write the juju version to the config.

222. By Jeff Pihach

Merged back the new charm release.

221. By Jeff Pihach

Updated to the newest juju-gui release.

220. By Francesco Banconi

Merged back the new charm release.

219. By Richard Harding

Update README to reflect recent changes.

218. By Francesco Banconi

Merged back the new charm release.

217. By Francesco Banconi

Updated to the newest juju-gui release.

216. By Francesco Banconi

Merged changes from the released charm.

215. By Francesco Banconi

Merged changes from the released charm.

214. By Francesco Banconi

Support user defined port.

Allow specifying a port on which the
GUI server starts listening for requests.

Tests: `make unittest`.

QA:
- bootstrap an environment;
- `make deploy`;
- wait for the unit to be deployed;
- visit the GUI URL, ensure port 80 redirects to 443 as usual
  and the GUI works as usual;
- switch to a customized port: `juju set juju-gui port=8080`;
- ensure the GUI is no longer reachable at port 80 or 443,
  instead it works correctly if you visit `https://<GUI-URL>:8080/`;
- switch to a another customized port: `juju set juju-gui port=443`;
- this time the GUI is still listening on default port for HTTPS,
  but port 80 no longer redirects to HTTPS;
- switch to an invalid port: `juju set juju-gui port=80000`;
- the GUI refuses to do that, and it falls back to using
  the default configuration: ensure port 80 redirects to 443;
- switch again to a customized valid port: `juju set juju-gui port=12345`;
- ensure the GUI server is listening on that port;
- finally, unset the port value: `juju unset juju-gui port`;
- back to defaults: ensure port 80 redirects to 443;
- destroy the environment.

Done, thank you.

R=rharding, jeff.pihach
CC=
https://codereview.appspot.com/174170043

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/charms/juju-gui
This branch contains Public information 
Everyone can see this information.

Subscribers