This is one of the ways we can prevent race conditions with backends that round
datetime objects or strings before persisting them.
Closes-Bug: 1622010
(cherry picked from commit 301b6a7bc770830485937f0b9927a26e2e5ec8c8)
Conflicts:
keystone/tests/unit/test_v3_auth.py: freezegun was added only in Newton
keystone/tests/unit/test_v3_os_revoke.py: minor conflict
In addition to cherry-pick, time.sleep() was added to several tests.
The tests assume that some time must pass between some operations.
In Newton and later this was done in other, unrelated commits and
freezegun was used. Freezegun cannot be used in Mitaka. Because of
that, time.sleep() was added at the same places where freezegun's
tick() is used in Newton.
Reviewed: https:/ /review. openstack. org/374245 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=8d12ba37367 a55ccdf3c73cc74 783951c3adcb68
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 8d12ba37367a55c cdf3c73cc747839 51c3adcb68
Author: Lance Bragstad <email address hidden>
Date: Fri Sep 9 22:10:02 2016 +0000
Consistently round down timestamps
This is one of the ways we can prevent race conditions with backends that round
datetime objects or strings before persisting them.
Closes-Bug: 1622010 485937f0b9927a2 6e2e5ec8c8)
(cherry picked from commit 301b6a7bc770830
Conflicts: tests/unit/ test_v3_ auth.py: freezegun was added only in Newton tests/unit/ test_v3_ os_revoke. py: minor conflict
keystone/
keystone/
In addition to cherry-pick, time.sleep() was added to several tests.
The tests assume that some time must pass between some operations.
In Newton and later this was done in other, unrelated commits and
freezegun was used. Freezegun cannot be used in Mitaka. Because of
that, time.sleep() was added at the same places where freezegun's
tick() is used in Newton.
Change-Id: I7c6d525dfb4ec1 3edb360a77b2742 2310d545305