'Tests that the /images/details registry API returns list of
public images that conforms to limit and marker query params.
This functionality is tested more thoroughly on /images, this is
just a sanity check'

def test_get_details_limit_marker(self):

    UUID3 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID3, size=20)
    db_api.image_create(self.context, extra_fixture)
    extra_fixture = self.get_fixture(id=_gen_uuid())
    db_api.image_create(self.context, extra_fixture)
    url = ('/images/detail?marker=%s&limit=1' % UUID3)
    res = self.get_api_response_ext(http.OK, url=url)
    res_dict = jsonutils.loads(res.body)
    images = res_dict['images']
    self.assertEqual(1, len(images))
    self.assertEqual(UUID2, images[0]['id'])
