4 Commits

Author SHA1 Message Date
Maru Newby
12354cd82b Stub out swift log configuration during testing
* s3_token and swift_auth depend on swift.common.utils.get_logger,
   which configures a syslog handler in an OS X-incompatible way.
   This change ensures that get_logger is stubbed out for the
   swift middleware tests to allow the Keystone test suite to execute
   successfully under OS X.
 * Addresses bug 974583

Change-Id: Ibdb665d1ea65c13ef792767ad66251857629a702
2012-04-06 08:06:16 -07:00
Maru Newby
6ec1782dcc Add support to swift_auth for tokenless authz
* Updates keystone.middleware.swift_auth to allow token-less
   (unauthenticated) access for container sync (bug 954030) and
   permitted referrers (bug 924578).

Change-Id: Ieccf458c44dfe55f546dc15c79704800dad59ac0
2012-03-30 17:26:54 -07:00
Maru Newby
f3af691863 Improve swift_auth test coverage + Minor fixes
* Isolates authorize() tests from wsgi tests
 * Adds coverage for authorize()
 * Adds support for a blank reseller_prefix
 * Adds swift_auth test dependencies to tools/test-requires
 * Cleans up authorize()'s use of tenant_id/tenant_name
   (addresses bug 963546)

Change-Id: I603b89ab4fe8559b0f5d72528afd659ee0f0bce1
2012-03-23 16:24:53 -07:00
Chmouel Boudjnah
53b3d44988 Add test for swift middleware.
- skip the tests if we don't have swift installed.

Change-Id: I3647538f3e7a32cbfce97b181c532371cef963da
2012-03-20 23:01:00 +00:00