Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2397)

Issue 13890044: Bundle deployment support functional test.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by frankban
Modified:
10 years, 7 months ago
Reviewers:
bac, mp+187502, gary.poster
Visibility:
Public.

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: run `make test JUJU_ENV="your-juju-environment"` 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)

Patch Set 1 #

Total comments: 9

Patch Set 2 : Bundle deployment support functional test. #

Patch Set 3 : Bundle deployment support functional test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+557 lines, -37 lines) Patch
M Makefile View 1 chunk +1 line, -1 line 0 comments Download
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M revision View 1 chunk +1 line, -1 line 0 comments Download
M tests/20-functional.test View 1 6 chunks +253 lines, -34 lines 0 comments Download
A tests/example.py View 1 chunk +79 lines, -0 lines 0 comments Download
M tests/helpers.py View 4 chunks +72 lines, -0 lines 0 comments Download
M tests/requirements.pip View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/test_helpers.py View 4 chunks +146 lines, -1 line 0 comments Download

Messages

Total messages: 7
frankban
Please take a look.
10 years, 7 months ago (2013-09-25 12:43:24 UTC) #1
bac
LGTM with some suggestions on breaking up the long test. My tests are still running. ...
10 years, 7 months ago (2013-09-25 13:49:47 UTC) #2
gary.poster
LGTM with suggestions. I see now I duplicated bac's comments, except he had some other ...
10 years, 7 months ago (2013-09-25 14:00:28 UTC) #3
frankban
Please take a look. https://codereview.appspot.com/13890044/diff/1/tests/20-functional.test File tests/20-functional.test (right): https://codereview.appspot.com/13890044/diff/1/tests/20-functional.test#newcode153 tests/20-functional.test:153: if options.get('builtin-server') == 'true': On ...
10 years, 7 months ago (2013-09-25 18:21:35 UTC) #4
bac
LGTM - I ran the tests and they took about 70 minutes and all passed.
10 years, 7 months ago (2013-09-25 20:29:35 UTC) #5
frankban
*** Submitted: Bundle deployment support functional test. This branch includes a charm functional test exercising ...
10 years, 7 months ago (2013-09-26 08:37:17 UTC) #6
frankban
10 years, 7 months ago (2013-09-26 08:39:31 UTC) #7
Thank you both for the reviews!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b