Backports of I9dd5b97dec93c0e5393a1e7d9640f85003651b56 to stable
branches are failing CI checks because several unit tests mock
os.path.exists and would need to be updated. This does not affect master
because test code changed in I4d9f96ec4cf3c6cd0d28dfe5ddb239d863498a72.
Work around this issue by replacing os.path.exists by os.path.isfile. It
is a better check anyway since we are reading the file.
Reviewed: https:/ /review. opendev. org/c/openstack /kayobe/ +/896877 /opendev. org/openstack/ kayobe/ commit/ cfaf571794296d6 e0cfed2771f8046 a8280ffb22
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit cfaf571794296d6 e0cfed2771f8046 a8280ffb22
Author: Pierre Riteau <email address hidden>
Date: Fri Sep 29 07:11:43 2023 +0200
Work around mocking issues on stable branches
Backports of I9dd5b97dec93c0 e5393a1e7d9640f 85003651b56 to stable cd0d28dfe5ddb23 9d863498a72.
branches are failing CI checks because several unit tests mock
os.path.exists and would need to be updated. This does not affect master
because test code changed in I4d9f96ec4cf3c6
Work around this issue by replacing os.path.exists by os.path.isfile. It
is a better check anyway since we are reading the file.
Change-Id: Ic53efd03cecbd5 3ad3e3b64b664e0 84f4e25be0e
Related-Bug: #2020135