Restore original time override in test_archive_task_logs
Change I9b16a3a849937aba5b90ed1ab9a80b7f0103f673 attempted to fix a
non-determinstic failure in the test_archive_task_logs functional test
by adding a time override. That fix however missed that the
osloutils_fixture.TimeFixture clears the time override when it exits
and that does not mean a previous time override will be restored.
This removes usage of the osloutils_fixture.TimeFixture and instead
sets time overrides and restores previous time overrides. Restoration
of the original time overrides also made an adjustment to the --before
option value necessary in order to pick up the first task_log record.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /803106 /opendev. org/openstack/ nova/commit/ 39ef1ad77485956 2183190f74831a1 15698e6836
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 39ef1ad77485956 2183190f74831a1 15698e6836
Author: melanie witt <email address hidden>
Date: Sat Jul 31 15:49:12 2021 +0000
Restore original time override in test_archive_ task_logs
Change I9b16a3a849937a ba5b90ed1ab9a80 b7f0103f673 attempted to fix a determinstic failure in the test_archive_ task_logs functional test fixture. TimeFixture clears the time override when it exits
non-
by adding a time override. That fix however missed that the
osloutils_
and that does not mean a previous time override will be restored.
This removes usage of the osloutils_ fixture. TimeFixture and instead
sets time overrides and restores previous time overrides. Restoration
of the original time overrides also made an adjustment to the --before
option value necessary in order to pick up the first task_log record.
Closes-Bug: #1934519
Change-Id: Ic28d2e53d5f50e 89635e19df08699 f2b8c5cea84