lp:~frankban/juju-quickstart/support-json

Created by Francesco Banconi and last modified
Get this branch:
bzr branch lp:~frankban/juju-quickstart/support-json
Only Francesco Banconi can upload to this branch. If you are Francesco Banconi please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Francesco Banconi
Project:
juju-quickstart
Status:
Merged

Recent revisions

16. By Francesco Banconi

Changes as per review.

15. By Francesco Banconi

Doc clean up.

14. By Francesco Banconi

Bootstrap a juju env in debug mode.

13. By Francesco Banconi

Checkpoint. Add all the tests.

12. By Francesco Banconi

Working tests.

11. By Francesco Banconi

Bumped version up.

10. By Francesco Banconi

Prototype.

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

8. By Francesco Banconi

File header fixes + pep8.

R=
CC=
https://codereview.appspot.com/19750043

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
This branch contains Public information 
Everyone can see this information.