Merge lp:~frankban/juju-quickstart/support-bundle-urls into lp:juju-quickstart
Proposed by
Francesco Banconi
Status: | Merged |
---|---|
Merged at revision: | 11 |
Proposed branch: | lp:~frankban/juju-quickstart/support-bundle-urls |
Merge into: | lp:juju-quickstart |
Diff against target: |
178 lines (+83/-7) 6 files modified
HACKING.rst (+11/-0) quickstart/app.py (+1/-1) quickstart/manage.py (+13/-5) quickstart/tests/test_manage.py (+25/-1) quickstart/tests/test_utils.py (+22/-0) quickstart/utils.py (+11/-0) |
To merge this branch: | bzr merge lp:~frankban/juju-quickstart/support-bundle-urls |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+194889@code.launchpad.net |
Description of the change
Support deploying "bundle:" URLs.
Also added packaging information to the
HACKING file, and updated the fallback
charm URL to the latest version which
officially supports bundles.
Tests: `make check`
QA:
`.venv/bin/python juju-quickstart -e ec2 bundle:
Remember to destroy your ec2 environment.
To post a comment you must log in.
Reviewers: mp+194889_ code.launchpad. net,
Message:
Please take a look.
Description:
Support deploying "bundle:" URLs.
Also added packaging information to the
HACKING file, and updated the fallback
charm URL to the latest version which
officially supports bundles.
Tests: `make check`
QA: ~hatch/ wiki/7/ TestBundle`
`.venv/bin/python juju-quickstart -e ec2
bundle:
Remember to destroy your ec2 environment.
https:/ /code.launchpad .net/~frankban/ juju-quickstart /support- bundle- urls/+merge/ 194889
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/23520044/
Affected files (+84, -6 lines): manage. py tests/test_ manage. py tests/test_ utils.py
M HACKING.rst
A [revision details]
M quickstart/app.py
M quickstart/
M quickstart/
M quickstart/
M quickstart/utils.py
Index: HACKING.rst
=== modified file 'HACKING.rst'
--- HACKING.rst 2013-11-06 15:21:19 +0000
+++ HACKING.rst 2013-11-12 15:34:15 +0000
@@ -72,3 +72,14 @@
installation::
$ .venv/bin/python juju-quickstart --help ~~~~~~~ ~~~~~~~ ~ /code.launchpad .net/~juju- gui-charmers/ +recipe/ juju-quickstart -daily>. /launchpad. net/~juju- gui/+archive/ quickstart- beta/+packages>. websocket- client` to be
+
+Creating PPA releases
+~~~~~~
+
+The recipe for creating packages is in
+<https:/
+We currently publish releases on the Juju Quickstart Beta PPA: see
+<https:/
+Packages depend on `python-jujuclient` and `python-
+available. They are available in saucy, and they are also stored in our
PPA in
+order to support previous Ubuntu releases.
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision:
<email address hidden>
+New revision:
<email address hidden>
Index: quickstart/app.py
=== modified file 'quickstart/app.py'
--- quickstart/app.py 2013-11-06 17:54:09 +0000
+++ quickstart/app.py 2013-11-12 15:55:34 +0000
@@ -31,7 +31,7 @@
# The default Juju GUI charm URL to use when it is not possible to charmworld juju-gui- 78' juju-gui- 79'
retrieve it
# from the charmworld API, e.g. due to temporary connection/
errors.
-DEFAULT_CHARM_URL = 'cs:precise/
+DEFAULT_CHARM_URL = 'cs:precise/
class ProgramExit( Exception) :
Index: quickstart/ manage. py manage. py' manage. py 2013-11-06 17:54:09 +0000 manage. py 2013-11-12 15:39:31 +0000 startswith( 'bundle: '): bundle_ url(bundle) error(' unable to open the bundle: ') or bundle.startswith('https:/ /'):
=== modified file 'quickstart/
--- quickstart/
+++ quickstart/
@@ -53,14 +53,21 @@
Exit with an error if the bundle options are not valid.
"""
bundle = options.bundle
+ if bundle.
+ # Convert "bundle:" URLs into HTTPS ones. The next if block below
will
+ # then load the bundle contents from the remote location.
+ try:
+ bundle = utils.convert_
+ except ValueError as err:
+ return parser.
{}'.format(err))
if bundle.startswith('http://
- # Load the bundle URL.
+ # Load the bundle from a remote URL.
...