Library for running OpenStack services
Go to file
Hervé Beraud caf66be763 Fix wsgi SSL tests for wsgi module under python 3
Previously some tests were ignored under python 3 environment, this was
due to some design changes introduced by python 3.7 [1] in the SSL
module of the stdlib. These changes reactivate some of them (some other
are still skipped and needs further works).

Indeed, when we try to use requests with SSL in a monkey patched
environment we faced the following issue:

```
TypeError: wrap_socket() got an unexpected keyword argument '_context'
```

This is due to the fact that we are in a monkey patched environment
where `requests` is monkey patched too.

We don't need `request` for our needs. Indeed we can easily send
http requests through low level socket. Our main goal is to test
our wsgi server and not to test the `requests` library, and `requests`
was just used to make the code more simpler.

In our case we can implement a code dedicated to send request to our green
server, unlock our tests and move away from this bug/side effect.

Also this reactivated test will check WSGI server with and without SSL,
so these changes add changes that allow us to submit a request without
wrapping the socket with SSL.

These changes move away from `requests` which is badly monkey patched by
eventlet [1]. Now we use monkey patched socket and ssl to
request the green server which is executed in background. Low level
(monkey patched) modules could help us to skirt layers that are possibly
badly monkey patched on higher level modules (urllib, requests, etc...).

[1] https://github.com/eventlet/eventlet/issues/526#issuecomment-482694279
[2] https://github.com/eventlet/eventlet/issues/526

Change-Id: I3a018d507d102266c1e2fc9b6732a9c09fa2bb49
Closes-Bug: #1482633
2020-06-17 12:23:42 +02:00
doc Merge "Add release notes links to doc index" 2020-05-26 13:51:51 +00:00
oslo_service Fix wsgi SSL tests for wsgi module under python 3 2020-06-17 12:23:42 +02:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-05-18 20:54:17 +02:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-18 17:45:44 +05:30
.gitignore Move doc related modules to doc/requirements.txt 2019-08-24 09:49:33 +08:00
.gitreview OpenDev Migration Patch 2019-04-19 19:36:22 +00: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 Python3 victoria unit tests 2020-04-14 10:17:38 +00:00
CONTRIBUTING.rst rearrange existing documentation to fit the new standard layout 2017-07-01 19:52:23 +09:00
HACKING.rst Update hacking version 2019-02-13 17:08:38 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2015-05-21 16:51:40 +03:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-30 13:48:51 +08:00
lower-constraints.txt Raise minimum version of eventlet to 0.25.2 2020-06-15 17:54:38 +02:00
requirements.txt Raise minimum version of eventlet to 0.25.2 2020-06-15 17:54:38 +02:00
setup.cfg Remove translation sections from setup.cfg 2020-05-15 11:16:23 +08:00
setup.py remove outdated header 2020-02-10 18:33:49 +01:00
test-requirements.txt Fix hacking min version to 3.0.1 2020-05-22 10:53:52 +08:00
tox.ini Bump default tox env from py37 to py38 2020-04-24 10:25:51 -05: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.