~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/tests/scheduler/test_scheduler.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short
  • Date: 2012-09-25 10:54:59 UTC
  • mfrom: (1.1.63)
  • Revision ID: package-import@ubuntu.com-20120925105459-fr27butcb6p498gp
Tags: 2012.2~rc2-0ubuntu1
[ Adam Gandelman ]
* debian/control: Add python-cinderclient to python-nova Depends.
* wrap-and-sort.

[ Chuck Short ]
* debian/nova-common.postinst: Change root_helper to rootwrap_config
  when upgrading from precise
* debian/pydist-overrides: dont try to install babel.
* New upstream version.
* debian/rules: FTBFS if testsuite fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        self.manager.run_instance(self.context, request_spec,
176
176
                None, None, None, None, {})
177
177
 
 
178
    def test_create_volume_no_valid_host_puts_volume_in_error(self):
 
179
        self._mox_schedule_method_helper('schedule_create_volume')
 
180
        self.mox.StubOutWithMock(db, 'volume_update')
 
181
 
 
182
        self.manager.driver.schedule_create_volume(self.context, '1', '2',
 
183
                None).AndRaise(exception.NoValidHost(reason=''))
 
184
        db.volume_update(self.context, '1', {'status': 'error'})
 
185
 
 
186
        self.mox.ReplayAll()
 
187
        self.assertRaises(exception.NoValidHost, self.manager.create_volume,
 
188
                          self.context, '1', '2')
 
189
 
178
190
    def test_prep_resize_no_valid_host_back_in_active_state(self):
179
191
        fake_instance_uuid = 'fake-instance-id'
180
192
        inst = {"vm_state": "", "task_state": ""}