summaryrefslogtreecommitdiffstats
path: root/gluster/swift/common
diff options
context:
space:
mode:
authorThiago da Silva <thiago@redhat.com>2013-10-31 14:17:22 -0400
committerLuis Pabon <lpabon@redhat.com>2013-11-04 10:51:41 -0800
commit0c34fa6085f96666429cc1835f6d69854a70530b (patch)
tree1820d3cd8a217c8a89a96feea1d2c9fbb5c5e3c7 /gluster/swift/common
parent9f8d2e61a79defd22fb4aa064ff5a5b936730b53 (diff)
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 <thiago@redhat.com> Reviewed-on: http://review.gluster.org/6212 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'gluster/swift/common')
-rw-r--r--gluster/swift/common/middleware/gswauth/swauth/middleware.py1
1 files changed, 1 insertions, 0 deletions
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))