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

Issue 52600045: Support revision-less charm URLs for GUI.

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

Description

Support revision-less charm URLs for GUI. Existing code to find the 'qualified url' for charms was refactored and re-used by the GUIEnv deploy method. https://code.launchpad.net/~bac/juju-deployer/bug-1277696/+merge/206008 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 13

Patch Set 2 : Support revision-less charm URLs for GUI. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -37 lines) Patch
A .lbox View 1 chunk +1 line, -0 lines 0 comments Download
A .lbox.check View 1 1 chunk +4 lines, -0 lines 0 comments Download
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M deployer/charm.py View 1 5 chunks +5 lines, -17 lines 0 comments Download
M deployer/env/gui.py View 1 2 chunks +10 lines, -1 line 0 comments Download
M deployer/guiserver.py View 1 2 chunks +4 lines, -12 lines 0 comments Download
M deployer/tests/test_constraints.py View 1 chunk +1 line, -1 line 0 comments Download
M deployer/tests/test_guienv.py View 1 2 chunks +18 lines, -2 lines 0 comments Download
M deployer/tests/test_utils.py View 1 3 chunks +71 lines, -2 lines 0 comments Download
M deployer/utils.py View 1 4 chunks +46 lines, -2 lines 0 comments Download

Messages

Total messages: 3
bac
Please take a look.
10 years, 3 months ago (2014-02-12 17:07:24 UTC) #1
frankban
Thanks for this nice branch Brad, LGTM. I'll just add some comments waiting for Kapil ...
10 years, 3 months ago (2014-02-12 18:28:37 UTC) #2
bac
10 years, 3 months ago (2014-02-12 21:03:34 UTC) #3
Please take a look.

https://codereview.appspot.com/52600045/diff/1/.lbox.check
File .lbox.check (right):

https://codereview.appspot.com/52600045/diff/1/.lbox.check#newcode3
.lbox.check:3: /usr/bin/nosetests -s --verbosity=2 deployer
Dang.  I'll just back this out or run the tests differently.  Don't want to make
too many infrastructure changes in this branch.

---

Changed to use setup.py to run them.  Good enough for lbox.check I say.

https://codereview.appspot.com/52600045/diff/1/deployer/tests/test_guienv.py
File deployer/tests/test_guienv.py (right):

https://codereview.appspot.com/52600045/diff/1/deployer/tests/test_guienv.py#...
deployer/tests/test_guienv.py:57: # The environment uses the API to deploy
charms.
On 2014/02/12 18:28:37, frankban wrote:
> This comment does not reflect the goal of the test.

Done.

https://codereview.appspot.com/52600045/diff/1/deployer/tests/test_guienv.py#...
deployer/tests/test_guienv.py:62: constraints = {'cpu-cores': '4', 'mem': '5G',
'root-disk': '2G'}
On 2014/02/12 18:28:37, frankban wrote:
> I'd be inclined to remove constraints from this test.

Done.

https://codereview.appspot.com/52600045/diff/1/deployer/tests/test_guienv.py#...
deployer/tests/test_guienv.py:65: def mocked_gqu(url):
On 2014/02/12 18:28:37, frankban wrote:
> s/mocked_gqu/mock_get_qualified_charm_url/?

Done.

https://codereview.appspot.com/52600045/diff/1/deployer/utils.py
File deployer/utils.py (right):

https://codereview.appspot.com/52600045/diff/1/deployer/utils.py#newcode325
deployer/utils.py:325: # Local import to avoid circular reference
On 2014/02/12 18:28:37, frankban wrote:
> We could instead define STORE_URL and then import it in charms.py.
> <shrug>

Done.
Sign in to reply to this message.

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