~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to tests/test_assess_log_rotation.py

  • Committer: Martin Packman
  • Date: 2016-04-29 00:19:30 UTC
  • mto: This revision was merged to the branch mainline in revision 1389.
  • Revision ID: martin.packman@canonical.com-20160429001930-yoju030ik6lwqf0e
Add clean_maas.py script for releasing machines

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    assess_debug_log,
17
17
    assess_machine_rotation,
18
18
)
19
 
from fakejuju import (
20
 
    fake_juju_client,
21
 
    fake_juju_client_optional_jes,
22
 
    )
23
19
from jujupy import (
24
20
    EnvJujuClient,
25
21
    JujuData,
27
23
    yaml_loads,
28
24
    )
29
25
from tests import TestCase
 
26
from tests.test_jujupy import FakeJujuClient
30
27
 
31
28
good_yaml = \
32
29
    """
181
178
class TestMachineRoation(TestCase):
182
179
 
183
180
    def test_respects_machine_id_0(self):
184
 
        client = fake_juju_client()
 
181
        client = FakeJujuClient(jes_enabled=True)
185
182
        client.bootstrap()
186
183
        client.deploy('fill-logs')
187
184
        with patch('assess_log_rotation.test_rotation') as tr_mock:
191
188
            'machine-size', 'megs=300', 'machine=0')
192
189
 
193
190
    def test_respects_machine_id_1(self):
194
 
        client = fake_juju_client_optional_jes(jes_enabled=False)
 
191
        client = FakeJujuClient(jes_enabled=False)
195
192
        client.bootstrap()
196
193
        client.deploy('fill-logs')
197
194
        with patch('assess_log_rotation.test_rotation') as tr_mock: