# Path: oioswift/common/middleware/copy.py
# class OioServerSideCopyMiddleware(ServerSideCopyMiddleware):
#     def __init__(self, app, conf):
#     def fast_copy_allowed(self, req):
#     def __call__(self, env, start_response):
#                 def _start_response(status, headers, exc_info=None):
# def filter_factory(global_conf, **local_conf):
#     def copy_filter(app):


import os.path
import sys
from six.moves import urllib
from swift.common import swob
from swift.common.swob import Request
from oioswift.common.middleware import copy
from test.unit.common.middleware.helpers import FakeSwift  # noqa: E402
from test.unit.common.middleware.test_copy \
    import TestServerSideCopyMiddleware  # noqa: E402
#!/usr/bin/env python
# Copyright (c) 2015 OpenStack Foundation
# Copyright (c) 2018-2020 OpenIO SAS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.



# Hack PYTHONPATH so "test" is swift's test directory
sys.path.insert(1, os.path.abspath(os.path.join(__file__, '../../../../..')))


class TestOioServerSideCopyMiddleware(TestServerSideCopyMiddleware):

    def setUp(self):
        self.app = FakeSwift()

# Path: oioswift/common/middleware/copy.py
# class OioServerSideCopyMiddleware(ServerSideCopyMiddleware):
#     def __init__(self, app, conf):
#     def fast_copy_allowed(self, req):
#     def __call__(self, env, start_response):
#                 def _start_response(status, headers, exc_info=None):
# def filter_factory(global_conf, **local_conf):
#     def copy_filter(app):


# Path: tests/unit/common/middleware/test_copy.py
import os.path
import sys
from six.moves import urllib
from swift.common import swob
from swift.common.swob import Request
from oioswift.common.middleware import copy
from test.unit.common.middleware.helpers import FakeSwift  # noqa: E402
from test.unit.common.middleware.test_copy \
    import TestServerSideCopyMiddleware  # noqa: E402

#!/usr/bin/env python
# Copyright (c) 2015 OpenStack Foundation
# Copyright (c) 2018-2020 OpenIO SAS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.



# Hack PYTHONPATH so "test" is swift's test directory
sys.path.insert(1, os.path.abspath(os.path.join(__file__, '../../../../..')))


class TestOioServerSideCopyMiddleware(TestServerSideCopyMiddleware):

    def setUp(self):
        self.app = FakeSwift()

        self.ssc = copy.filter_factory({