From b38ece6ccf048c85b7a76c7f80f072ed58fd5c83 Mon Sep 17 00:00:00 2001 From: Zhiteng Huang Date: Fri, 13 Dec 2013 22:20:47 +0800 Subject: [PATCH] Remove test that was no longer used for long test_too_big_volume() case in test_volume.py was legacy from nova- volume, it was never actually testing anything. This change removes this case for good. Change-Id: I66e0eb80326f039ddc580dec0409fd4090ba5102 --- cinder/tests/test_volume.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cinder/tests/test_volume.py b/cinder/tests/test_volume.py index 6109c2f83..37bc36849 100644 --- a/cinder/tests/test_volume.py +++ b/cinder/tests/test_volume.py @@ -841,20 +841,6 @@ class VolumeTestCase(BaseVolumeTestCase): image_id='fake_id', source_volume='fake_id') - def test_too_big_volume(self): - """Ensure failure if a too large of a volume is requested.""" - # FIXME(vish): validation needs to move into the data layer in - # volume_create - return True - try: - volume = tests_utils.create_volume(self.context, size=1001, - status='creating', - host=CONF.host) - self.volume.create_volume(self.context, volume) - self.fail("Should have thrown TypeError") - except TypeError: - pass - def test_run_attach_detach_volume_for_instance(self): """Make sure volume can be attached and detached from instance.""" mountpoint = "/dev/sdf" -- 2.45.2