]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor socket ssl wrapping
authorElena Ezhova <eezhova@mirantis.com>
Tue, 7 Apr 2015 11:54:45 +0000 (14:54 +0300)
committerElena Ezhova <eezhova@mirantis.com>
Fri, 24 Apr 2015 10:21:49 +0000 (13:21 +0300)
commit88510ef1b153fc548fc5bccc24e116a0882e66a8
tree8fe41abf2cc6031d562de77b1be7704734937690
parent27ab8e619324a212b54c431a9837cebe8beb3618
Refactor socket ssl wrapping

Move socket wrapping into a separate method in order to separate
its logic from other action done in _get_socket. Now, ssl wrapping
is applied to the socket returned by _get_socket method.
Additionally checks for ssl config options are now performed during
init and not each time wrap_socket is called.

Added unit tests.

Related-Bug: #1276694
Change-Id: I706517ae351a7a681623ec91c9657a2f61cd2679
neutron/tests/unit/test_wsgi.py
neutron/wsgi.py