PEPy fixes
This commit is contained in:
@@ -21,10 +21,10 @@ class DomainRemapMiddleware(object):
|
|||||||
"""
|
"""
|
||||||
Middleware that translates container and account parts of a domain to
|
Middleware that translates container and account parts of a domain to
|
||||||
path parameters that the proxy server understands.
|
path parameters that the proxy server understands.
|
||||||
|
|
||||||
container.account.storageurl/object gets translated to
|
container.account.storageurl/object gets translated to
|
||||||
container.account.storageurl/path_root/account/container/object
|
container.account.storageurl/path_root/account/container/object
|
||||||
|
|
||||||
account.storageurl/path_root/container/object gets translated to
|
account.storageurl/path_root/container/object gets translated to
|
||||||
account.storageurl/path_root/account/container/object
|
account.storageurl/path_root/account/container/object
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -19,13 +19,17 @@ from webob import Request
|
|||||||
|
|
||||||
from swift.common.middleware import domain_remap
|
from swift.common.middleware import domain_remap
|
||||||
|
|
||||||
|
|
||||||
class FakeApp(object):
|
class FakeApp(object):
|
||||||
|
|
||||||
def __call__(self, env, start_response):
|
def __call__(self, env, start_response):
|
||||||
return env['PATH_INFO']
|
return env['PATH_INFO']
|
||||||
|
|
||||||
|
|
||||||
def start_response(*args):
|
def start_response(*args):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class TestDomainRemap(unittest.TestCase):
|
class TestDomainRemap(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user