swift/test/functional
Prashanth Pai 46d61a4dcd Refactor server side copy as middleware
Rewrite server side copy and 'object post as copy' feature as middleware to
simplify the PUT method in the object controller code. COPY is no longer
a verb implemented as public method in Proxy application.

The server side copy middleware is inserted to the left of dlo, slo and
versioned_writes middlewares in the proxy server pipeline. As a result,
dlo and slo copy_hooks are no longer required. SLO manifests are now
validated when copied so when copying a manifest to another account the
referenced segments must be readable in that account for the manifest
copy to succeed (previously this validation was not made, meaning the
manifest was copied but could be unusable if the segments were not
readable).

With this change, there should be no change in functionality or existing
behavior. This is asserted with (almost) no changes required to existing
functional tests.

Some notes (for operators):
* Middleware required to be auto-inserted before slo and dlo and
  versioned_writes
* Turning off server side copy is not configurable.
* object_post_as_copy is no longer a configurable option of proxy server
  but of this middleware. However, for smooth upgrade, config option set
  in proxy server app is also read.

DocImpact: Introducing server side copy as middleware

Co-Authored-By: Alistair Coles <alistair.coles@hpe.com>
Co-Authored-By: Thiago da Silva <thiago@redhat.com>

Change-Id: Ic96a92e938589a2f6add35a40741fd062f1c29eb
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Signed-off-by: Thiago da Silva <thiago@redhat.com>
2016-05-11 14:55:51 -04:00
..
__init__.py Silence SkipTest noise in in-process test teardown 2016-02-24 14:41:28 +00:00
swift_test_client.py Make functional tests tolerate pre-existing versioned container 2016-01-19 13:12:49 +00:00
test_access_control.py Add comments to role-based access control functional tests 2016-02-15 20:08:43 +01:00
test_account.py Fix func test --until-failure and --no-discover options 2015-12-16 15:28:25 +00:00
test_container.py Add container quota functional test 2016-02-29 16:41:45 +00:00
test_object.py By default, disallow inbound X-Timestamp headers 2016-03-09 09:14:46 +00:00
tests.py Refactor server side copy as middleware 2016-05-11 14:55:51 -04:00