← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1308404] [NEW] Using deleted image as marker does not return bad request with v2 registry

 

Public bug reported:

$ ./run_tests.sh --subunit glance.tests.functional.v2.test_images.TestImages.test_images_container
Running `tools/with_venv.sh python -m glance.openstack.common.lockutils python setup.py testr --testr-args='--subunit --concurrency 1  --subunit glance.tests.functional.v2.test_images.TestImages.test_images_container'`
glance.tests.functional.v2.test_images.TestImages
    test_images_container                                             FAIL

Slowest 1 tests took 12.71 secs:
glance.tests.functional.v2.test_images.TestImages
    test_images_container                                                 12.71

======================================================================
FAIL: glance.tests.functional.v2.test_images.TestImages.test_images_container
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/home/ubuntu/glance/glance/tests/functional/v2/test_images.py", line 1649, in test_images_container
    self.assertEqual(400, response.status_code)
  File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 321, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
MismatchError: 400 != 200

1646         # Ensure bad request for using a deleted image as marker
1647         path = self._url('/v2/images?marker=%s' % images[0]['id'])
1648         response = requests.get(path, headers=self._headers())
1649         self.assertEqual(400, response.status_code)

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  Using deleted image as marker does not return bad request with v2
  registry

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

Bug description:
  $ ./run_tests.sh --subunit glance.tests.functional.v2.test_images.TestImages.test_images_container
  Running `tools/with_venv.sh python -m glance.openstack.common.lockutils python setup.py testr --testr-args='--subunit --concurrency 1  --subunit glance.tests.functional.v2.test_images.TestImages.test_images_container'`
  glance.tests.functional.v2.test_images.TestImages
      test_images_container                                             FAIL

  Slowest 1 tests took 12.71 secs:
  glance.tests.functional.v2.test_images.TestImages
      test_images_container                                                 12.71

  ======================================================================
  FAIL: glance.tests.functional.v2.test_images.TestImages.test_images_container
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: Traceback (most recent call last):
    File "/home/ubuntu/glance/glance/tests/functional/v2/test_images.py", line 1649, in test_images_container
      self.assertEqual(400, response.status_code)
    File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 321, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertThat
      raise mismatch_error
  MismatchError: 400 != 200

  1646         # Ensure bad request for using a deleted image as marker
  1647         path = self._url('/v2/images?marker=%s' % images[0]['id'])
  1648         response = requests.get(path, headers=self._headers())
  1649         self.assertEqual(400, response.status_code)

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


Follow ups

References