Designate unit tests fail with jsonschema>=4.16.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Critical
|
Michael Johnson |
Bug Description
Designate unit tests will fail when run with jsonschema >= 4.16.0 due to a change in a parameter type[1]. Basically the "store" parameter is now a pyrsistent map type instead of a simple tuple.
Looking at the jsonschema code, we are attempting to pass in the default values[2] anyway, so I think we can just remove those parameters from the init.
An example error:
Traceback (most recent call last):
File "/home/
quota = schema.
File "/home/
self.resolver = resolvers.
File "/home/
resolver = cls(schema.
File "/home/
super(
File "/home/
for schema in store.values() if "$id" in schema
AttributeError: 'tuple' object has no attribute 'values'
[1] https:/
[2] https:/
Fix proposed to branch: master /review. opendev. org/c/openstack /designate/ +/861098
Review: https:/