Merge lp://qastaging/~frankban/juju-quickstart/handle-gui-ports into lp://qastaging/juju-quickstart
Status: | Merged |
---|---|
Merged at revision: | 134 |
Proposed branch: | lp://qastaging/~frankban/juju-quickstart/handle-gui-ports |
Merge into: | lp://qastaging/juju-quickstart |
Diff against target: |
1265 lines (+640/-133) 13 files modified
quickstart/__init__.py (+1/-1) quickstart/app.py (+34/-3) quickstart/jujugui.py (+84/-0) quickstart/jujutools.py (+10/-42) quickstart/manage.py (+75/-18) quickstart/platform_support.py (+0/-1) quickstart/tests/test_app.py (+93/-13) quickstart/tests/test_juju.py (+11/-0) quickstart/tests/test_jujugui.py (+123/-0) quickstart/tests/test_jujutools.py (+47/-48) quickstart/tests/test_manage.py (+125/-7) quickstart/tests/test_utils.py (+23/-0) quickstart/utils.py (+14/-0) |
To merge this branch: | bzr merge lp://qastaging/~frankban/juju-quickstart/handle-gui-ports |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+260032@code.qastaging.launchpad.net |
Description of the change
Handle Juju GUI server port.
The Juju GUI charm can be configured to listen
to customized ports (juju set juju-gui port=n).
This branch adds to quickstart the ability to
detect the port used by the GUI server, and
therefore connect to the right WebSocket and
Web URLs. Additionally handle the cases in which
the GUI is run in non secure mode.
Also add an option to deploy the GUI on a
customized port directly using quickstart.
Also add an hidden options (--gui-source)
intended for development use only. This allows
for building a specific GUI github branch
(e.g. frankban/
when installing the Juju GUI, and can be useful
while coding/QAing GUI branches.
Tests: `make check`.
QA:
- use the GUI as usual, to check for regressions:
`devenv/
- change the juju-gui port and secure mode:
`juju set juju-gui port=4242 secure=false`
- wait for the changes to take effect;
- use quickstart again to check that insecure mode
and customized ports are detected:
`devenv/
- destroy the environment;
- use quickstart again to server the GUI develop
branch on a customized port:
`devenv/
- check that everything works correctly;
- destroy the environment;
- done, thank you!
Reviewers: mp+260032_ code.launchpad. net,
Message:
Please take a look.
Description:
Handle Juju GUI server port.
The Juju GUI charm can be configured to listen
to customized ports (juju set juju-gui port=n).
This branch adds to quickstart the ability to
detect the port used by the GUI server, and
therefore connect to the right WebSocket and
Web URLs. Additionally handle the cases in which
the GUI is run in non secure mode.
Also add an option to deploy the GUI on a
customized port directly using quickstart.
Also add an hidden options (--gui-source) my-feature- branch or juju/develop)
intended for development use only. This allows
for building a specific GUI github branch
(e.g. frankban/
when installing the Juju GUI, and can be useful
while coding/QAing GUI branches.
Tests: `make check`.
QA: bin/juju- quickstart` ; bin/juju- quickstart` ; bin/juju- quickstart --gui-port 8000 --gui-source
- use the GUI as usual, to check for regressions:
`devenv/
- change the juju-gui port and secure mode:
`juju set juju-gui port=4242 secure=false`
- wait for the changes to take effect;
- use quickstart again to check that insecure mode
and customized ports are detected:
`devenv/
- destroy the environment;
- use quickstart again to server the GUI develop
branch on a customized port:
`devenv/
juju/develop`;
- check that everything works correctly;
- destroy the environment;
- done, thank you!
https:/ /code.launchpad .net/~frankban/ juju-quickstart /handle- gui-ports/ +merge/ 260032
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/238540043/
Affected files (+642, -133 lines): __init_ _.py jujugui. py jujutools. py manage. py platform_ support. py tests/test_ app.py tests/test_ juju.py tests/test_ jujugui. py tests/test_ jujutools. py tests/test_ manage. py tests/test_ utils.py
A [revision details]
M quickstart/
M quickstart/app.py
A quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
A quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/utils.py