if not exc:
self.assertEqual(volume['volume_type_id'], vol_type['id'])
self.assertEqual(volume['status'], 'available')
+ self.assertEqual(volume['host'], 'newhost')
self.assertEqual(volumes_in_use, 1)
else:
self.assertEqual(volume['volume_type_id'], old_vol_type['id'])
self.assertEqual(volume['status'], 'available')
+ self.assertEqual(volume['host'], CONF.host)
self.assertEqual(volumes_in_use, 0)
def test_retype_volume_driver_success(self):
self.db.volume_update(context, volume_id,
{'volume_type_id': new_type_id,
+ 'host': host['host'],
'status': status_update['status']})
if old_reservations: