From 7aa628033d3ac224876d5c0f84d8d546a0fb1507 Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Thu, 31 Oct 2013 14:17:22 -0400 Subject: refactoring add/remove account and user tests These tests cover account registration and de-registration user creation/delete, and listing of both account and user. Some functions were renamed to better represent their purpose and make them generic enough to be used by other tests Change-Id: Ie622daccfc8e2d2fb45565952a99d7d832ce1189 Signed-off-by: Thiago da Silva Reviewed-on: http://review.gluster.org/6212 Reviewed-by: Luis Pabon Tested-by: Luis Pabon Reviewed-on: http://review.gluster.org/6257 --- gluster/swift/common/middleware/gswauth/swauth/middleware.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gluster') diff --git a/gluster/swift/common/middleware/gswauth/swauth/middleware.py b/gluster/swift/common/middleware/gswauth/swauth/middleware.py index c1dd260..f01182f 100644 --- a/gluster/swift/common/middleware/gswauth/swauth/middleware.py +++ b/gluster/swift/common/middleware/gswauth/swauth/middleware.py @@ -750,6 +750,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