Go to file
MORITA Kazutaka e3ee641242 test: add FakeSwift
The multi-object delete API sends both object requests and bucket requests to
Swift, but our current test framework doesn't handle such kind of operations;
FakeAppBucket class handles only bucket requests, and FakeAppObject handles
only object ones.  We need a more flexible mock class to test multi-object
delete API and other S3 features for future work.

This patch adds FakeSwift borrowed from the Swift test code.  It emulates
enough features for Swift WSGI middleware.

Change-Id: Ib226bf3c2cf6f58fbf680f5b5fea94fb0a5a24f9
2014-06-05 10:24:38 +09:00
2014-03-26 04:39:23 +09:00
2014-06-05 10:24:38 +09:00
2014-04-16 10:55:54 +09:00
2014-03-22 15:42:32 +09:00
2012-10-15 14:59:43 -07:00
2013-02-08 08:34:35 +09:00
2014-04-18 15:50:12 +09:00
2014-04-09 11:30:40 +02:00
2014-04-18 15:50:12 +09:00

Swift3

Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.

Install

  1. Install Swift3 with sudo python setup.py install or sudo python setup.py develop or via whatever packaging system you may be using.

  2. Alter your proxy-server.conf pipeline to have swift3:

If you use tempauth:

Was::

    [pipeline:main]
    pipeline = catch_errors cache tempauth proxy-server

Change To::

    [pipeline:main]
    pipeline = catch_errors cache swift3 tempauth proxy-server

If you use keystone:

Was::

    [pipeline:main]
    pipeline = catch_errors cache authtoken keystone proxy-server

Change To::

    [pipeline:main]
    pipeline = catch_errors cache swift3 s3token authtoken keystone proxy-server
  1. Add to your proxy-server.conf the section for the Swift3 WSGI filter::

    [filter:swift3] use = egg:swift3#swift3

You also need to add the following if you use keystone (adjust port, host, protocol configurations for your environment):

[filter:s3token]
paste.filter_factory = keystone.middleware.s3_token:filter_factory
auth_port = 35357
auth_host = 127.0.0.1
auth_protocol = http
Description
Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.
Readme 5.4 MiB
Languages
Python 99.3%
Shell 0.7%