'Tests that the /images registry API returns list of
public images that conforms to a marker query param'

def test_get_index_marker(self):

    time1 = (timeutils.utcnow() + datetime.timedelta(seconds=5))
    time2 = (timeutils.utcnow() + datetime.timedelta(seconds=4))
    time3 = timeutils.utcnow()
    UUID3 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID3, size=19, created_at=time1)
    db_api.image_create(self.context, extra_fixture)
    UUID4 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID4, created_at=time2)
    db_api.image_create(self.context, extra_fixture)
    UUID5 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID5, created_at=time3)
    db_api.image_create(self.context, extra_fixture)
    res = self.get_api_response_ext(http.OK, url=('/images?marker=%s' % UUID4))
    self.assertEqualImages(res, (UUID5, UUID2))
