From 0c34fa6085f96666429cc1835f6d69854a70530b Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Thu, 31 Oct 2013 14:17:22 -0400 Subject: additional gswauth functional tests These tests cover account registration and de-registration user creation/delete, and listing of both account and user Change-Id: Ie622daccfc8e2d2fb45565952a99d7d832ce1189 Signed-off-by: Thiago da Silva Reviewed-on: http://review.gluster.org/6212 Reviewed-by: Luis Pabon Tested-by: Luis Pabon --- gluster/swift/common/middleware/gswauth/swauth/middleware.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gluster/swift/common/middleware/gswauth') diff --git a/gluster/swift/common/middleware/gswauth/swauth/middleware.py b/gluster/swift/common/middleware/gswauth/swauth/middleware.py index 4cf61cd..77ff72c 100644 --- a/gluster/swift/common/middleware/gswauth/swauth/middleware.py +++ b/gluster/swift/common/middleware/gswauth/swauth/middleware.py @@ -747,6 +747,7 @@ class Swauth(object): account = req.path_info_pop() if req.path_info or not account or account[0] == '.': return HTTPBadRequest(request=req) + # Ensure the container in the main auth account exists (this # container represents the new account) path = quote('/v1/%s/%s' % (self.auth_account, account)) -- cgit