← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1259036] Re: Duplicate test case 'test_exceed_append_location' in unit/test_quota.py

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => icehouse-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1259036

Title:
  Duplicate test case 'test_exceed_append_location' in
  unit/test_quota.py

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  Duplicate test case name in unit/test_quota.py, see
  https://github.com/openstack/glance/blob/master/glance/tests/unit/test_quota.py#L193

      def test_exceed_append_location(self):
          image_size = 10
          max_images = 2
          quota = image_size * max_images
          self.config(user_storage_quota=quota)
          image = self._get_image(image_size=image_size,
                                  location_count=max_images)
          self.assertRaises(exception.StorageQuotaFull,
                            image.locations.append,
                            {'url': 'file:///a/path', 'metadata': {}})

      def test_exceed_append_location(self):
          image_size = 10
          max_images = 2
          quota = image_size * max_images
          self.config(user_storage_quota=quota)
          image = self._get_image(image_size=image_size,
                                  location_count=max_images)
          self.assertRaises(exception.StorageQuotaFull,
                            image.locations.insert,
                            0,
                            {'url': 'file:///a/path', 'metadata': {}})

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1259036/+subscriptions


References