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

Issue 5970068: juju/control should be aware of subordinates

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by bcsaller
Modified:
12 years ago
Reviewers:
hazmat, mp+100489
Visibility:
Public.

Description

juju/control should be aware of subordinates Includes support for add-unit, deploy, status, remove-unit https://code.launchpad.net/~bcsaller/juju/subordinate-control-status/+merge/100489 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : juju/control should be aware of subordinates #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+523 lines, -188 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/control/add_unit.py View 2 chunks +5 lines, -0 lines 0 comments Download
M juju/control/deploy.py View 2 chunks +8 lines, -4 lines 0 comments Download
M juju/control/remove_unit.py View 2 chunks +5 lines, -0 lines 0 comments Download
M juju/control/status.py View 1 7 chunks +337 lines, -152 lines 6 comments Download
M juju/control/tests/test_add_unit.py View 2 chunks +14 lines, -0 lines 0 comments Download
M juju/control/tests/test_deploy.py View 1 chunk +27 lines, -0 lines 0 comments Download
M juju/control/tests/test_remove_unit.py View 1 chunk +12 lines, -0 lines 0 comments Download
M juju/control/tests/test_status.py View 9 chunks +93 lines, -29 lines 1 comment Download
M juju/state/tests/test_charm.py View 2 chunks +19 lines, -3 lines 0 comments Download
M juju/unit/tests/test_lifecycle.py View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4
bcsaller
Please take a look.
12 years ago (2012-04-02 18:06:11 UTC) #1
bcsaller
Please take a look.
12 years ago (2012-04-02 22:32:11 UTC) #2
hazmat
This looks good. The refactoring of status isn't complete though.. it needs some more docs, ...
12 years ago (2012-04-03 16:38:22 UTC) #3
hazmat
12 years ago (2012-04-03 16:42:38 UTC) #4
https://codereview.appspot.com/5970068/diff/2002/juju/control/tests/test_stat...
File juju/control/tests/test_status.py (right):

https://codereview.appspot.com/5970068/diff/2002/juju/control/tests/test_stat...
juju/control/tests/test_status.py:788: state = yield self.build_topology()
this method is a crutch, its creating way more stuff than what is actually
tested for. its better to simplify and model an api for creation of whats
needed, instead of relying on a megamethod to build world every test.

i'd like to see a test here of removing a primary unit with a subordinate
attached, as that broke status on my previous usage of this feature.
Sign in to reply to this message.

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