lp:~frankban/juju-quickstart/support-json
- Get this branch:
- bzr branch lp:~frankban/juju-quickstart/support-json
Branch merges
- Juju GUI Hackers: Pending requested
-
Diff: 564 lines (+191/-50)12 files modified.bzrignore (+1/-0)
HACKING.rst (+1/-1)
README.rst (+1/-1)
quickstart/__init__.py (+1/-1)
quickstart/app.py (+20/-10)
quickstart/manage.py (+36/-10)
quickstart/tests/helpers.py (+26/-5)
quickstart/tests/test_app.py (+43/-12)
quickstart/tests/test_manage.py (+38/-2)
quickstart/tests/test_utils.py (+19/-6)
quickstart/utils.py (+4/-1)
setup.py (+1/-1)
Branch information
Recent revisions
- 9. By Francesco Banconi
-
Deploy a bundle from a HTTP(S) url.
The bundle argument can be a file path or
a http/https URL pointing to a bundle YAML.Also get the URL of the last Juju GUI charm
revision from charmworld (API 2 for now).Tests: `make check`.
QA:
I copied a bundle YAML over here:
http://dpaste. com/1435065/ plain/
You should be able to deploy that bundle
by running the following (after juju switching to ec2 or similar):
`.venv/bin/python juju-quickstart http://dpaste. com/1435065/ plain/`
Remember to destroy your ec2 environment...R=gary.poster
CC=
https://codereview. appspot. com/19870043 - 7. By Francesco Banconi
-
Deploy a bundle from a file path.
Tests: run `make check`.
QA (assuming you have an ec2 environment set up named 'ec2'):
- run `.venv/bin/python juju-quickstart /no/such/file`:
you should see the following error:
"unable to open bundle file: [Errno 2]
No such file or directory: '/no/such/file'";
- run `echo "env: no-services" > ~/invalid-bundle. yaml`;
- run `.venv/bin/python juju-quickstart ~/invalid-bundle. yaml`:
you should see the following error:
"invalid YAML contents: {'env': 'no-services'}";
- remove the file you created in your home:
`rm ~/invalid-bundle. yaml`;
- download the bundle file from
http://pastebin. ubuntu. com/6283832/ and save it
for later as '../mybundle.yaml';
- run `.venv/bin/python juju-quickstart ../mybundle.yaml`:
you should see the following error:
"multiple bundles found (exp1, exp2) but no bundle name specified";
- run `.venv/bin/python juju-quickstart ../mybundle.yaml -n exp1`:
this time the quickstart application should start normally.
- wait fr quickstart to complete: after some minutes the browser
should open on the GUI page, the bundle deployment should be
started, and the app exits without erros.Remember to destroy your ec2 environment.
R=gary.poster
CC=
https://codereview. appspot. com/15880043
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:juju-quickstart