Merge lp://qastaging/~frankban/charms/precise/juju-gui/deployer-functional-test into lp://qastaging/~juju-gui/charms/precise/juju-gui/trunk
Status: | Merged |
---|---|
Merged at revision: | 110 |
Proposed branch: | lp://qastaging/~frankban/charms/precise/juju-gui/deployer-functional-test |
Merge into: | lp://qastaging/~juju-gui/charms/precise/juju-gui/trunk |
Diff against target: |
772 lines (+555/-37) 7 files modified
Makefile (+1/-1) revision (+1/-1) tests/20-functional.test (+253/-34) tests/example.py (+79/-0) tests/helpers.py (+72/-0) tests/requirements.pip (+3/-0) tests/test_helpers.py (+146/-1) |
To merge this branch: | bzr merge lp://qastaging/~frankban/charms/precise/juju-gui/deployer-functional-test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
charmers | Pending | ||
Review via email:
|
Description of the change
Bundle deployment support functional test.
This branch includes a charm functional test
exercising the builtin server bundle support.
Reorganized the functional tests so that, at
least when the builtin server is used, the
deployed GUI service is reused by all tests.
Also fixed a pyJuju clean up error when the
builtin server is used to serve the GUI.
Added an helper function to retrieve, if
possible, the admin secret for the current
Juju environment, and a very simple WebSocket
client object used in tests.
Note that the websocket-client package used
by the client is now explicitly listed in
the requirements file, but it was already
installed before as a dependency of the
python juju client.
No QA required.
Tests:
run `make test JUJU_ENV=
from the root of this branch.
Note that it is not currently possible to run
juju-test with a juju-core local provider:
with LXC juju-core requires the bootstrap and
destroy-environment commands to be run as root.
For this reason, I suggest to run the tests
using ec2; in my machine they take about 1:15h.
Reviewers: mp+187502_ code.launchpad. net,
Message:
Please take a look.
Description:
Bundle deployment support functional test.
This branch includes a charm functional test
exercising the builtin server bundle support.
Reorganized the functional tests so that, at
least when the builtin server is used, the
deployed GUI service is reused by all tests.
Also fixed a pyJuju clean up error when the
builtin server is used to serve the GUI.
Added an helper function to retrieve, if
possible, the admin secret for the current
Juju environment, and a very simple WebSocket
client object used in tests.
Note that the websocket-client package used
by the client is now explicitly listed in
the requirements file, but it was already
installed before as a dependency of the
python juju client.
No QA required.
Tests: "your-juju- environment" `
run `make test JUJU_ENV=
from the root of this branch.
Note that it is not currently possible to run
juju-test with a juju-core local provider:
with LXC juju-core requires the bootstrap and
destroy-environment commands to be run as root.
For this reason, I suggest to run the tests
using ec2; in my machine they take about 1:15h.
https:/ /code.launchpad .net/~frankban/ charms/ precise/ juju-gui/ deployer- functional- test/+merge/ 187502
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13890044/
Affected files (+532, -37 lines): functional. test nts.pip helpers. py
M Makefile
A [revision details]
M revision
M tests/20-
A tests/example.py
M tests/helpers.py
M tests/requireme
M tests/test_