~mthaddon/mojo/bundle-phase-1863764

« back to all changes in this revision

Viewing changes to mojo/tests/test_juju2.py

  • Committer: mergebot at canonical
  • Author(s): "Tom Haddon"
  • Date: 2019-12-03 09:20:41 UTC
  • mfrom: (511.1.3 lp-1851439)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20191203092041-ef6ksam3lttwajsi
Consider an empty workload-status from a subordinate as busy lp#1851439

Reviewed-on: https://code.launchpad.net/~mthaddon/mojo/lp-1851439/+merge/375933
Reviewed-by: Stuart Bishop <stuart.bishop@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        status_mock.return_value = self._testdata_from_file('juju2-subordinate-busy.yaml')
117
117
        with self.assertRaises(mojo.juju.JujuWaitException):
118
118
            self.status.check_and_wait(wait_for_steady=True, timeout=1)
 
119
        status_mock.return_value = self._testdata_from_file('juju2-subordinate-busy2.yaml')
 
120
        with self.assertRaises(mojo.juju.JujuWaitException):
 
121
            self.status.check_and_wait(wait_for_steady=True, timeout=1)
119
122
 
120
123
        # error states
121
124
        with mock.patch('mojo.juju.status.major_version', new=2):