'Test update volume metadata with different metadata type.'

def test_update_volume_metadata_maintenance(self):

    test_meta1 = {'fake_key1': 'fake_value1'}
    FAKE_METADATA_TYPE = enum.Enum('METADATA_TYPES', 'fake_type')
    volume = tests_utils.create_volume(self.context, metadata=test_meta1, **self.volume_params)
    volume['status'] = 'maintenance'
    self.assertRaises(exception.InvalidVolume, self.volume_api.update_volume_metadata, self.context, volume, test_meta1, False, FAKE_METADATA_TYPE.fake_type)
