|
|
|
@ -127,14 +127,14 @@ class VolumesNegativeTest(base.BaseVolumeTest):
|
|
|
|
|
def test_update_volume_with_nonexistent_volume_id(self):
|
|
|
|
|
"""Test updating non existent volume should fail"""
|
|
|
|
|
self.assertRaises(lib_exc.NotFound, self.volumes_client.update_volume,
|
|
|
|
|
volume_id=data_utils.rand_uuid())
|
|
|
|
|
volume_id=data_utils.rand_uuid(), name="n")
|
|
|
|
|
|
|
|
|
|
@decorators.attr(type=['negative'])
|
|
|
|
|
@decorators.idempotent_id('e66e40d6-65e6-4e75-bdc7-636792fa152d')
|
|
|
|
|
def test_update_volume_with_invalid_volume_id(self):
|
|
|
|
|
"""Test updating volume with invalid volume id should fail"""
|
|
|
|
|
self.assertRaises(lib_exc.NotFound, self.volumes_client.update_volume,
|
|
|
|
|
volume_id=data_utils.rand_name('invalid'))
|
|
|
|
|
volume_id=data_utils.rand_name('invalid'), name="n")
|
|
|
|
|
|
|
|
|
|
@decorators.attr(type=['negative'])
|
|
|
|
|
@decorators.idempotent_id('72aeca85-57a5-4c1f-9057-f320f9ea575b')
|
|
|
|
|