https://codereview.appspot.com/5957043/diff/1/juju/control/constraints_get.py#newcode51
juju/control/constraints_get.py:51: yield
esm.set_config_state(env_config, environment.name)
On 2012/03/29 19:52:53, hazmat wrote:
> so why are we syncing env on get-constraints.. the constraints are
already
> actualized on the object being inspected. if its a legacy environment
we should
> just log warning and exit.
https://codereview.appspot.com/5957043/diff/1/juju/control/tests/test_initialize.py#newcode41
juju/control/tests/test_initialize.py:41: def test_bad_data(self):
On 2012/03/29 19:52:53, hazmat wrote:
> general comment, its really nice to have doc strings on tests for
other devs,
> even if its just a single line to express intent, and assuming the
test name
> itself isn't obvious. ie test_bad_constraints_data or
> this is a test that the admin initialize exits 1 on bad constraints
data.
Sorry, didn't see the comments on patch set 1.
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ constraints_ get.py constraints_ get.py (right):
File juju/control/
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ constraints_ get.py# newcode51 constraints_ get.py: 51: yield config_ state(env_ config, environment.name)
juju/control/
esm.set_
On 2012/03/29 19:52:53, hazmat wrote:
> so why are we syncing env on get-constraints.. the constraints are
already
> actualized on the object being inspected. if its a legacy environment
we should
> just log warning and exit.
Addressed in later comments & branches.
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ constraints_ set.py constraints_ set.py (right):
File juju/control/
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ constraints_ set.py# newcode90 constraints_ set.py: 90: yield config_ state(env_ config, environment.name)
juju/control/
esm.set_
On 2012/03/29 19:52:53, hazmat wrote:
> Some comments on the reasoning for this here and in get-constraints
would be
> good.
Addressed in later comments and branches
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ tests/test_ bootstrap. py tests/test_ bootstrap. py (right):
File juju/control/
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ tests/test_ bootstrap. py#newcode7 tests/test_ bootstrap. py:7: from juju.lib.mocker import ANY
juju/control/
On 2012/03/29 19:52:53, hazmat wrote:
> not needed.
Done.
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ tests/test_ initialize. py tests/test_ initialize. py (right):
File juju/control/
https:/ /codereview. appspot. com/5957043/ diff/1/ juju/control/ tests/test_ initialize. py#newcode41 tests/test_ initialize. py:41: def test_bad_ data(self) : constraints_ data or
juju/control/
On 2012/03/29 19:52:53, hazmat wrote:
> general comment, its really nice to have doc strings on tests for
other devs,
> even if its just a single line to express intent, and assuming the
test name
> itself isn't obvious. ie test_bad_
> this is a test that the admin initialize exits 1 on bad constraints
data.
Done.
https:/ /codereview. appspot. com/5957043/