yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01957
[Bug 1132840] Re: Latest jsonschema release breaks unit tests
** Changed in: glance/grizzly
Importance: Undecided => High
** Changed in: glance/grizzly
Status: New => Fix Released
** Changed in: glance/grizzly
Milestone: None => 2013.1
** Changed in: glance/grizzly
Assignee: (unassigned) => Matthew Treinish (treinish)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1132840
Title:
Latest jsonschema release breaks unit tests
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Status in Glance grizzly series:
Fix Released
Bug description:
jsonschema v1.0.0 was release on 02/25/2013 this update breaks the
unit tests with a failure like:
ft50.1: glance.tests.unit.v2.test_images_resource.TestImagesDeserializerWithExtendedSchema.test_create_StringException: Traceback (most recent call last):
File "/home/jenkins/workspace/gate-glance-python27/glance/tests/unit/v2/test_images_resource.py", line 1237, in test_create
output = self.deserializer.create(request)
File "/home/jenkins/workspace/gate-glance-python27/glance/api/v2/images.py", line 206, in create
self.schema.validate(body)
File "/home/jenkins/workspace/gate-glance-python27/glance/schema.py", line 32, in validate
jsonschema.validate(obj, self.raw())
File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/jsonschema.py", line 1239, in validate
cls.check_schema(schema)
File "/home/jenkins/workspace/gate-glance-python27/.tox/py27/local/lib/python2.7/site-packages/jsonschema.py", line 141, in check_schema
error.message, validator=error.validator, path=error.path,
SchemaError: True is not of type u'array'
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1132840/+subscriptions