commit 102679a1cf80d7a2191acb3ca84c815d4622a3f1
Author: Matt Riedemann <email address hidden>
Date: Fri Feb 8 10:16:34 2019 -0500
Trim fake_deserialize_context in test_conductor
The assertions on the user_id and project_id in the
fake_deserialize_context methods do not actually
cause tests to fail if they raise MismatchError
because oslo.messaging just swallows the exception
and logs the traceback. With enough of these getting
logged it will cause subunit parser failures in the
console output because the stream is too large.
This removes the fake method and just changes the
stub to be a lambda that returns self.context which
is what fake_deserialize_context was doing minus
the project_id/user_id assertions.
Reviewed: https:/ /review. openstack. org/635859 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=102679a1cf8 0d7a2191acb3ca8 4c815d4622a3f1
Committed: https:/
Submitter: Zuul
Branch: master
commit 102679a1cf80d7a 2191acb3ca84c81 5d4622a3f1
Author: Matt Riedemann <email address hidden>
Date: Fri Feb 8 10:16:34 2019 -0500
Trim fake_deserializ e_context in test_conductor
The assertions on the user_id and project_id in the deserialize_ context methods do not actually
fake_
cause tests to fail if they raise MismatchError
because oslo.messaging just swallows the exception
and logs the traceback. With enough of these getting
logged it will cause subunit parser failures in the
console output because the stream is too large.
This removes the fake method and just changes the e_context was doing minus
stub to be a lambda that returns self.context which
is what fake_deserializ
the project_id/user_id assertions.
Change-Id: I26b201b410aa1d 965dc7a6635c11c 8b63b457a71
Partial-Bug: #1813147