lp://staging/~hatch/charms/trusty/juju-gui/proxy-ws-request
- Get this branch:
- bzr branch lp://staging/~hatch/charms/trusty/juju-gui/proxy-ws-request
Branch merges
- Francesco Banconi: Approve
- Madison Scott-Clary (community): Approve
-
Diff: 124 lines (+32/-9)4 files modifiedserver/guiserver/apps.py (+2/-1)
server/guiserver/handlers.py (+9/-0)
server/guiserver/tests/test_apps.py (+4/-4)
server/guiserver/tests/test_handlers.py (+17/-4)
Branch information
- Owner:
- Jeff Pihach
- Status:
- Development
Recent revisions
- 231. By Jeff Pihach
-
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.https:/
/code.launchpad .net/~hatch/ charms/ trusty/ juju-gui/ add-uuid- configjs/ +merge/ 248826 - 226. By Francesco Banconi
-
Update to Tornado 3.2.2.
This is done as an attempt to fix the
Tornado race condition described in [1]Also use the newest version of the
futures package.Add the missing firefox dependency to the
sysdeps make target.Simplify the GUI server WebSocket client now that
Tornado supports close() out of the box.Update the utils.clone_request function so that
the ProxyHandler does not fail if a GET request
is performed with an empty string body.Other tests fixes.
Tests: `make lint unittest`
QA:
- bootstrap an environment;
- run `make deploy` and wait for the GUI to be ready;
- use the GUI as usual to deploy charms and bundles:
ensure everything works as usual, with events correctly
reported by the GUI and no disconnections from core
happen;
- use `juju ssh juju-gui/0 sudo tailf /var/log/upstart/ guiserver. log`
to check no errors are reported by the GUI server while
working with the GUI;
- ensure the juju-gui icon is correctly displayed in the service view
(meaning local charm icons are still properly retrieved from core);
- destroy the environment.[1] https:/
/bugs.launchpad .net/juju- gui/+bug/ 1402061 R=rharding, martin.hilton
CC=
https://codereview. appspot. com/195720043 - 224. By Francesco Banconi
-
Support deploying bundles from custom users.
Also add the charmstore-url charm option so
that the new GUI can properly connect to the
charm store.Update the deployer version (we use a fork for now)
and the GUI server so that both the user and the
password are provided when calling the deployer
blocking functions.If you are curious, the deployer merge proposal is here:
https://code.launchpad .net/~frankban/ juju-deployer/ guiserver- auth/+merge/ 244984 Tests: `make unittest`.
QA:
- bootstrap an environment with juju 1.21;
- deploy this charm by using `make deploy`;
- wait for the charm to be ready;
- switch to the most recent GUI:
`juju set juju-gui juju-gui-source= develop` ;
- while waiting, create a new juju user:
`juju user add new-user --generate`;
- copy to clipboard the password included in the
resulting new-user.jenv file;
- wait for the trunk release to be ready;
- visit the GUI and log in using "new-user" and
the copied password;
- ensure the charm browser is correctly displayed, meaning
the charm properly connects to the charm store;
- search for a bundle in the browser and deploy it: you should
get this error: "An error occurred while deploying the bundle:
Invalid relation in config, service 1 not found, rel 1 <-> 0
Invalid relation in config, service 0 not found, rel 1 <-> 0"
or similar... This is another issue. Dragging and dropping an old
bundle from your desktop should instead work;
- destroy the environment.Done, thank you!
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