oslo.service/oslo_service
Eric Fried b85d9353fb Fixture to mock loopingcall wait()
Consumers of loopingcall may wish to exercise their code in test cases
without incurring actual wall clock sleep time in their test runs.
Heretofore, this required digging into the internals of the loopingcall
module and mocking something private (or something hidden by something
private).

This patch exposes a public oslo_service.fixture.SleepFixture for this
purpose. It can be maintained opaquely as internals change without
affecting its consumers.

See [1] for (one example of) the motivation behind this change.

[1] https://review.openstack.org/#/c/615724/

Change-Id: I0089c7778957456db66599abffaaad3a5332243c
2018-11-07 09:34:51 -06:00
..
locale/en_GB/LC_MESSAGES Imported Translations from Zanata 2018-03-01 06:11:58 +00:00
tests Fixture to mock loopingcall wait() 2018-11-07 09:34:51 -06:00
__init__.py Limit monotonic to py2 2018-11-07 09:22:24 -06:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:28:29 +08:00
_options.py Merge "wsgi: decrease the default number of greenthreads in pool" 2016-02-24 05:30:42 +00:00
eventlet_backdoor.py Remove log translations 2017-03-23 16:04:59 +08:00
fixture.py Fixture to mock loopingcall wait() 2018-11-07 09:34:51 -06:00
loopingcall.py Fix stop of loopingcall 2018-10-31 23:19:17 +01:00
periodic_task.py Limit monotonic to py2 2018-11-07 09:22:24 -06:00
service.py Skips signal handling on Windows 2018-08-23 17:00:02 -07:00
sslutils.py Add Bandit to tox for security static analysis 2015-12-01 16:10:15 +03:00
systemd.py Fix argument type for _sd_notify() on python3 2016-03-31 10:51:19 -06:00
threadgroup.py [ThreadGroup] Don't remove timer when stop timers 2018-05-09 00:54:54 +00:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:21 -05:00
wsgi.py Remove log translations 2017-03-23 16:04:59 +08:00