Library for running OpenStack services
Go to file
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
doc/source Fixture to mock loopingcall wait() 2018-11-07 09:34:51 -06:00
oslo_service Fixture to mock loopingcall wait() 2018-11-07 09:34:51 -06:00
releasenotes Update reno for stable/rocky 2018-07-26 12:40:19 +00:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-18 17:45:44 +05:30
.gitignore Clean up .gitignore references to personal tools 2018-10-15 11:56:15 +08:00
.gitreview exported from oslo-incubator by graduate.sh 2015-05-21 16:51:40 +03:00
.mailmap exported from oslo-incubator by graduate.sh 2015-05-21 16:51:40 +03:00
.stestr.conf Convert oslo.service to using stestr 2018-07-04 08:39:21 +07:00
.zuul.yaml add lib-forward-testing-python3 test job 2018-08-11 18:20:16 -04:00
CONTRIBUTING.rst rearrange existing documentation to fit the new standard layout 2017-07-01 19:52:23 +09:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 23:28:29 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2015-05-21 16:51:40 +03:00
README.rst Add release notes link to README 2018-06-21 13:20:00 +08:00
babel.cfg exported from oslo-incubator by graduate.sh 2015-05-21 16:51:40 +03:00
lower-constraints.txt Convert oslo.service to using stestr 2018-07-04 08:39:21 +07:00
requirements.txt Fixture to mock loopingcall wait() 2018-11-07 09:34:51 -06:00
setup.cfg Always build universal wheels 2018-10-09 16:16:21 +02:00
setup.py Updated from global requirements 2017-03-03 00:03:22 +00:00
test-requirements.txt Convert oslo.service to using stestr 2018-07-04 08:39:21 +07:00
tox.ini Remove unnecessary pyNN testenv 2018-07-04 08:40:36 +07:00

README.rst

Team and repository tags

image

oslo.service -- Library for running OpenStack services

Latest Version

Downloads

oslo.service provides a framework for defining new long-running services using the patterns established by other OpenStack applications. It also includes utilities long-running applications might need for working with SSL or WSGI, performing periodic operations, interacting with systemd, etc.