This change refactors prvisep util test cases to account for the
fact that oslo.log now conditionally uses an internal pipe mutex
when logging under eventlet.
This was added by Iac1b0891ae584ce4b95964e6cdc0ff2483a4e57d
which is part of oslo.log 5.3.0
As a result we need to mock all calls to oslo.log in unit tests
that are assertign if os.write is called. when the internal
pipe mutex is used oslo.log calls os.write when the mutex is
released.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /894538 /opendev. org/openstack/ nova/commit/ ea07f96eb10a4fb 7c4c00cbde34868 a3d21b6c22
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit ea07f96eb10a4fb 7c4c00cbde34868 a3d21b6c22
Author: Sean Mooney <email address hidden>
Date: Mon Sep 11 14:19:45 2023 +0100
adapt to oslo.log changes
This change refactors prvisep util test cases to account for the
fact that oslo.log now conditionally uses an internal pipe mutex
when logging under eventlet.
This was added by Iac1b0891ae584c e4b95964e6cdc0f f2483a4e57d
which is part of oslo.log 5.3.0
As a result we need to mock all calls to oslo.log in unit tests
that are assertign if os.write is called. when the internal
pipe mutex is used oslo.log calls os.write when the mutex is
released.
Related-Bug: #1983863 90b79690fff25f8 e3fce2a4aca
Change-Id: Id313669df80f91