summaryrefslogtreecommitdiffstats
path: root/test/functional_auth
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2013-12-06 12:10:20 +0530
committerLuis Pabon <lpabon@redhat.com>2013-12-16 08:09:38 -0800
commite61f396cc79f013c0c0db0f521888c3bb878dd99 (patch)
tree19a2677e9a67bb91024a0931210a61e762336743 /test/functional_auth
parentcaeabbb85ecb8099df844b59af3cbfe37aa3091b (diff)
Fix typo and add comment
Fix spelling of "privileges" in gswauth-* commands. Add comment to clarify use of req.credentials_valid. Change-Id: Ibb4d331f57df29e28670252b1360b3a72ea688cf Signed-off-by: Prashanth Pai <ppai@redhat.com> Reviewed-on: http://review.gluster.org/6448 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'test/functional_auth')
-rw-r--r--test/functional_auth/gswauth/test_gswauth_cli.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional_auth/gswauth/test_gswauth_cli.py b/test/functional_auth/gswauth/test_gswauth_cli.py
index 13deb69..e128b54 100644
--- a/test/functional_auth/gswauth/test_gswauth_cli.py
+++ b/test/functional_auth/gswauth/test_gswauth_cli.py
@@ -132,7 +132,7 @@ class TestAccount(unittest.TestCase):
(status,output) = Utils.addUser('test','tester','testing')
(status,output)=Utils.addAccount('test2',user='test:tester',key='testing')
- self.assertEqual('Account creation failed: 403 Forbidden: Insufficient priveleges' in output,True, 'Invalid account creation request accepted: '+output)
+ self.assertEqual('Account creation failed: 403 Forbidden: Insufficient privileges' in output,True, 'Invalid account creation request accepted: '+output)
#TODO:more cases?
def testDeleteAccount(self):
@@ -160,7 +160,7 @@ class TestAccount(unittest.TestCase):
(status,output) = Utils.addUser('test','tester','testing')
(status,output) = Utils.deleteAccount('test2',user='test:tester',key='testing')
- self.assertEqual('Delete account failed: 403 Forbidden: Insufficient priveleges' in output,True, 'account deletion failed for test2 account'+output)
+ self.assertEqual('Delete account failed: 403 Forbidden: Insufficient privileges' in output,True, 'account deletion failed for test2 account'+output)
(status,output) = Utils.deleteAccount('test2',key='invalidkey')
self.assertEqual('Delete account failed: 401 Unauthorized: Invalid user/key provided' in output,True, 'account deletion failed for test2 account'+output)
@@ -239,7 +239,7 @@ class TestUser(unittest.TestCase):
self.assertEqual(status, 0, 'Invalid user creation request accepted,accountdoesnotexist: '+output)
(status,output) = Utils.addUser('test','testuser2','testuser2',user='test:testuser',key='testuser')
- self.assertEqual('User creation failed: 403 Forbidden: Insufficient priveleges' in output, True, 'user addition failed'+output)
+ self.assertEqual('User creation failed: 403 Forbidden: Insufficient privileges' in output, True, 'user addition failed'+output)
(status,output) = Utils.addUser('test','testuser2','testuser2',user='test:testadminuser',key='invalidkey')
self.assertEqual('User creation failed: 401 Unauthorized: Invalid user/key provided' in output, True, 'user addition failed'+output)
@@ -250,7 +250,7 @@ class TestUser(unittest.TestCase):
self.setTestDeleteUserEnv()
(status,output) = Utils.deleteUser('test','testadminuser',user='test:testuser',key='testuser')
- self.assertEqual('Delete user failed: 403 Forbidden: Insufficient priveleges' in output, True, 'user deletion failed'+output)
+ self.assertEqual('Delete user failed: 403 Forbidden: Insufficient privileges' in output, True, 'user deletion failed'+output)
(status,output) = Utils.deleteUser('test','testuser',key='invalidkey')
self.assertEqual('Delete user failed: 401 Unauthorized: Invalid user/key provided' in output, True, 'user deletion failed'+output)