Merge lp:~fwereade/pyjuju/retire-direct-constraints-creation into lp:~fwereade/pyjuju/shadow-trunk-1204
Proposed by
William Reade
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | 508 |
Merged at revision: | 507 |
Proposed branch: | lp:~fwereade/pyjuju/retire-direct-constraints-creation |
Merge into: | lp:~fwereade/pyjuju/shadow-trunk-1204 |
Prerequisite: | lp:~fwereade/pyjuju/constraints-via-provider |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~fwereade/pyjuju/retire-direct-constraints-creation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Reade | Pending | ||
Review via email: mp+99651@code.launchpad.net |
Description of the change
Remove most remaining direct uses of Constraints
The contents of constraint_test will soon scatter amongst the providers;
leaving them in as verification for now.
To post a comment you must log in.
Reviewers: mp+99651_ code.launchpad. net,
Message:
Please take a look.
Description:
Remove most remaining direct uses of Constraints
The contents of constraint_test will soon scatter amongst the providers;
leaving them in as verification for now.
https:/ /code.launchpad .net/~fwereade/ juju/retire- direct- constraints- creation/ +merge/ 99651
Requires: /code.launchpad .net/~fwereade/ juju/constraint s-via-provider/ +merge/ 99650
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/5933050/
Affected files: tests/test_ machine. py tests/test_ provision. py tests/test_ constraints. py tests/test_ firewall. py tests/test_ machine. py tests/test_ placement. py tests/test_ relation. py tests/test_ service. py tests/test_ deploy. py
A [revision details]
M juju/agents/
M juju/agents/
M juju/machine/
M juju/state/
M juju/state/
M juju/state/
M juju/state/
M juju/state/
M juju/unit/
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: juju/agents/ tests/test_ machine. py tests/test_ machine. py' tests/test_ machine. py 2012-03-27 22:46:44 +0000 tests/test_ machine. py 2012-03-28 00:38:16 +0000 tests.test_ repository import RepositoryTestBase constraints import Constraints tests.test_ constraints import ( ager, MachineState zookeeper_ address
self. service_ state_manager = ServiceStateMan ager(self. client)
self. service = yield self.service_ state_manager. add_service_ state( from_strs( "dummy" , []))
=== modified file 'juju/agents/
--- juju/agents/
+++ juju/agents/
@@ -13,7 +13,8 @@
from juju.charm.tests import local_charm_id
from juju.charm.
from juju.lib.mocker import MATCH
-from juju.machine.
+from juju.machine.
+ dummy_constraints, series_constraints)
from juju.state.machine import MachineStateMan
from juju.state.service import ServiceStateManager
from juju.tests.common import get_test_
@@ -50,8 +51,7 @@
# the machine.
- "fatality-blog", self.charm_state,
- Constraints.
+ "fatality-blog", self.charm_state, dummy_constraints)
@ inlineCallbacks config( self):
machine_ state_manager = MachineStateMan ager(self. client)
def get_agent_
@@ -60,7 +60,7 @@
- Constraints.
+ series_constraints)
Index: juju/agents/ tests/test_ provision. py tests/test_ provision. py' tests/test_ provision. py 2012-03-27 23:22:28 +0000 tests/test_ provision. py 2012-03-28 00:38:16 +0000 provision import ProvisioningAgent t.environment import Environment t.errors import EnvironmentsCon figError constraints import Constraints
=== modified file 'juju/agents/
--- juju/agents/
+++ juju/agents/
@@ -6,7 +6,7 @@
from juju.agents.
from juju.environmen
from juju.environmen
-from juju.machine.
+from juju.mach...