The context.to_dict in turn calls the oslo.context to_dict. By enforcing
the exact dictionary output of the to_dict tests will fail any time that
oslo.context changes the output of to_dict. This happened with the
release of oslo.context 2.6.0.
For nova testing purposes we should only assert properties of the
dictionary output that were added by nova and rely on oslo.context doing
the correct thing regarding deserializing its own options.
Reviewed: https:/ /review. openstack. org/345633 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9f99f6c212c 38f8ae26c6aeee4 b4521cbf9207a4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9f99f6c212c38f8 ae26c6aeee4b452 1cbf9207a4
Author: Jamie Lennox <email address hidden>
Date: Fri Jul 22 05:21:23 2016 +1000
Don't assert exact to_dict output
The context.to_dict in turn calls the oslo.context to_dict. By enforcing
the exact dictionary output of the to_dict tests will fail any time that
oslo.context changes the output of to_dict. This happened with the
release of oslo.context 2.6.0.
For nova testing purposes we should only assert properties of the
dictionary output that were added by nova and rely on oslo.context doing
the correct thing regarding deserializing its own options.
Related-Bug: #1602081 48ec01bbf8c28f9 46fb5120ba5
Change-Id: Ib91a73a017e02b