summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDoug Hellmann <doug.hellmann@dreamhost.com>2013-05-29 19:49:29 -0400
committerDoug Hellmann <doug.hellmann@dreamhost.com>2013-06-07 12:42:52 -0400
commit39c17cb13e005894c66daadc7317ff3d57fe2fd7 (patch)
treed34e4a1fabe9e69983554b1b2655a045e1d2ea22 /tests
parent106376d59f9a25fef94baf413316b22c7d4218d2 (diff)
downloadoslo-39c17cb13e005894c66daadc7317ff3d57fe2fd7.tar.gz
oslo-39c17cb13e005894c66daadc7317ff3d57fe2fd7.tar.xz
oslo-39c17cb13e005894c66daadc7317ff3d57fe2fd7.zip
Move wsgi module to deprecated package
As we are planning to deprecate the wsgi module, move it out of the main openstack/common folder to the new "deprecated" folder. Move some of the middleware classes into the middleware package, since those are still useful and should be maintained. There's still work to do to remove the dependency of the size limit middleware on the Request class in the now deprecated wsgi module. Refer to the mailing list thread at http://lists.openstack.org/pipermail/openstack-dev/2013-May/009666.html for additional details. Change-Id: I05ff583ef37174835393905a3066390f400ffdcf Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/deprecated/__init__.py0
-rw-r--r--tests/unit/deprecated/test_wsgi.py (renamed from tests/unit/test_wsgi.py)5
-rw-r--r--tests/unit/extension_stubs.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/unit/deprecated/__init__.py b/tests/unit/deprecated/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/unit/deprecated/__init__.py
diff --git a/tests/unit/test_wsgi.py b/tests/unit/deprecated/test_wsgi.py
index a3a4d32..72aeae7 100644
--- a/tests/unit/test_wsgi.py
+++ b/tests/unit/deprecated/test_wsgi.py
@@ -24,12 +24,13 @@ import routes
import six
import webob
+from openstack.common.deprecated import wsgi
from openstack.common import exception
-from openstack.common import wsgi
+
from tests import utils
TEST_VAR_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
- '..', 'var'))
+ '..', '..', 'var'))
class RequestTest(utils.BaseTestCase):
diff --git a/tests/unit/extension_stubs.py b/tests/unit/extension_stubs.py
index 03b9702..4e44c9c 100644
--- a/tests/unit/extension_stubs.py
+++ b/tests/unit/extension_stubs.py
@@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-from openstack.common import wsgi
+from openstack.common.deprecated import wsgi
class StubExtension(object):