<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gluster-swift.git/test/functional_auth/gswauth, branch sp</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/'/>
<entry>
<title>adding error handling to gswauth-cleanup-tokens tool</title>
<updated>2014-02-05T14:23:04+00:00</updated>
<author>
<name>Thiago da Silva</name>
<email>thiago@redhat.com</email>
</author>
<published>2014-01-23T18:43:28+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=3ee9a70402764f21dbea387aa75d81999b224beb'/>
<id>3ee9a70402764f21dbea387aa75d81999b224beb</id>
<content type='text'>
added input validation for a couple of options and
error handling in case a non-existing account name
is provided

Change-Id: I6d703d584552fc7b7574f34e79ed25a2982b6d5e
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6767
Reviewed-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Tested-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Tested-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Reviewed-by: Chetan Risbud &lt;crisbud@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
added input validation for a couple of options and
error handling in case a non-existing account name
is provided

Change-Id: I6d703d584552fc7b7574f34e79ed25a2982b6d5e
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6767
Reviewed-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Tested-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Tested-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Reviewed-by: Chetan Risbud &lt;crisbud@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes some TCs that assert for response code 403</title>
<updated>2014-01-31T06:17:37+00:00</updated>
<author>
<name>Pushpesh Sharma</name>
<email>psharma@redhat.com</email>
</author>
<published>2014-01-28T10:54:18+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=ec2c548af9067e73e9e6c6a34a1438a3ff7e94a2'/>
<id>ec2c548af9067e73e9e6c6a34a1438a3ff7e94a2</id>
<content type='text'>
For some scenarios although the expected response as per the
REST spec is 403, but due to technical limitation/performance
improvements it is decided to go with 401.EX:An admin/regular
user tries to add a reseller admin user.

Change-Id: Ibc280a0be6e5cb81d4d2c46d9a758915ff60ae8f
Reviewed-on: http://review.gluster.org/6833
Reviewed-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-by: Chetan Risbud &lt;crisbud@redhat.com&gt;
Tested-by: Chetan Risbud &lt;crisbud@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For some scenarios although the expected response as per the
REST spec is 403, but due to technical limitation/performance
improvements it is decided to go with 401.EX:An admin/regular
user tries to add a reseller admin user.

Change-Id: Ibc280a0be6e5cb81d4d2c46d9a758915ff60ae8f
Reviewed-on: http://review.gluster.org/6833
Reviewed-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-by: Chetan Risbud &lt;crisbud@redhat.com&gt;
Tested-by: Chetan Risbud &lt;crisbud@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Test cases for gswauth-cleanup-token</title>
<updated>2014-01-24T16:12:15+00:00</updated>
<author>
<name>Pushpesh Sharma</name>
<email>psharma@redhat.com</email>
</author>
<published>2014-01-22T14:13:42+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=1f432663badbee97543d92dd68fc196b169a938d'/>
<id>1f432663badbee97543d92dd68fc196b169a938d</id>
<content type='text'>
This commit creates a new class to validate the cleanup-token
&amp; set-account-service CLI utility.This test tries to cover all the psossible values
that can be passed as user input valid/invalid.

Change-Id: Ia8ca40ca9e63a296b70cb999c6507b7b1ffbdf61
Signed-off-by: Pushpesh Sharma &lt;psharma@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6759
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit creates a new class to validate the cleanup-token
&amp; set-account-service CLI utility.This test tries to cover all the psossible values
that can be passed as user input valid/invalid.

Change-Id: Ia8ca40ca9e63a296b70cb999c6507b7b1ffbdf61
Signed-off-by: Pushpesh Sharma &lt;psharma@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6759
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Provide more generic string in testAssert of some TCs</title>
<updated>2014-01-21T18:11:42+00:00</updated>
<author>
<name>Pushpesh Sharma</name>
<email>psharma@redhat.com</email>
</author>
<published>2014-01-16T06:05:10+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=22d8dffb366fc46b6810e068a771e3948fd89a3c'/>
<id>22d8dffb366fc46b6810e068a771e3948fd89a3c</id>
<content type='text'>
CLI test case were failing on RHEL systems as the error string
on Fedora19 and RHEL6.4 systems are different however a more gereric
string is there on both of the systems and this is about that only.
It replaces the 'ECONNREFUSED' &amp; 'No address associated with hostname'
with 'Check that the admin_url is valid'.Now the TCs pass on both of
the OS.

Change-Id: Iff8b2719e8917864ed8f80d961c55a7f9f6fc77b
Signed-off-by: Pushpesh Sharma &lt;psharma@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6718
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CLI test case were failing on RHEL systems as the error string
on Fedora19 and RHEL6.4 systems are different however a more gereric
string is there on both of the systems and this is about that only.
It replaces the 'ECONNREFUSED' &amp; 'No address associated with hostname'
with 'Check that the admin_url is valid'.Now the TCs pass on both of
the OS.

Change-Id: Iff8b2719e8917864ed8f80d961c55a7f9f6fc77b
Signed-off-by: Pushpesh Sharma &lt;psharma@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6718
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix error handing in swauth tools</title>
<updated>2014-01-14T20:15:53+00:00</updated>
<author>
<name>Thiago da Silva</name>
<email>thiago@redhat.com</email>
</author>
<published>2013-12-04T23:12:12+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=62d07833db5412f482001b275d2d646abbf21c14'/>
<id>62d07833db5412f482001b275d2d646abbf21c14</id>
<content type='text'>
The swauth tools did not handle an invalid admin_url, so it just failed
printing the stacktrace, which is not useful to end users.
This fix catches the exception and prints an error message that can
help user solve the issue.

Change-Id: I806c1cf191b5921e904b155f65cdbde5f2aac695
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6431
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The swauth tools did not handle an invalid admin_url, so it just failed
printing the stacktrace, which is not useful to end users.
This fix catches the exception and prints an error message that can
help user solve the issue.

Change-Id: I806c1cf191b5921e904b155f65cdbde5f2aac695
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6431
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug where admin is able to delete reseller_admin</title>
<updated>2014-01-10T20:52:53+00:00</updated>
<author>
<name>Thiago da Silva</name>
<email>thiago@redhat.com</email>
</author>
<published>2013-12-16T17:00:38+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=205a6e4aa7e86b1e82babd3fa64d2cf002ccdaef'/>
<id>205a6e4aa7e86b1e82babd3fa64d2cf002ccdaef</id>
<content type='text'>
Changed the code to only allow the super_admin to delete a reseller_admin.
This follows the same logic of user creation, where only the super_admin
can create a reseller_admin.

Also, took the opportunity to refactor some code and implemented
get_user_detail method to remove duplicated code

Bug 1260239: https://bugs.launchpad.net/gluster-swift/+bug/1260239

Change-Id: I9e4866cd7ad08698f427846be566ab2364ad4850
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6516
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changed the code to only allow the super_admin to delete a reseller_admin.
This follows the same logic of user creation, where only the super_admin
can create a reseller_admin.

Also, took the opportunity to refactor some code and implemented
get_user_detail method to remove duplicated code

Bug 1260239: https://bugs.launchpad.net/gluster-swift/+bug/1260239

Change-Id: I9e4866cd7ad08698f427846be566ab2364ad4850
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6516
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix users not able to change their own password/key</title>
<updated>2014-01-07T21:50:30+00:00</updated>
<author>
<name>Prashanth Pai</name>
<email>ppai@redhat.com</email>
</author>
<published>2014-01-02T06:50:20+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=94a3f539e75b069bb1f9df6f850adfe16d76b572'/>
<id>94a3f539e75b069bb1f9df6f850adfe16d76b572</id>
<content type='text'>
Users were not able to update their own password/key
with the update operation resulting in 403 (HTTPForbidden).

EXAMPLES:
Command to update password/key of regular user:
gswauth-add-user -U account1:user1 -K old_pass account1 user1 new_pass

Command to update password/key of account admin:
gswauth-add-user -U account1:admin -K old_pass -a account1 admin new_pass

Command to update password/key of reseller_admin:
gswauth-add-user -U account1:radmin -K old_pass -r account1 radmin new_pass

BUG: https://bugs.launchpad.net/gluster-swift/+bug/1262227

Change-Id: I604da5aee67099b29541eb7e51a040a041f1961b
Signed-off-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6650
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Users were not able to update their own password/key
with the update operation resulting in 403 (HTTPForbidden).

EXAMPLES:
Command to update password/key of regular user:
gswauth-add-user -U account1:user1 -K old_pass account1 user1 new_pass

Command to update password/key of account admin:
gswauth-add-user -U account1:admin -K old_pass -a account1 admin new_pass

Command to update password/key of reseller_admin:
gswauth-add-user -U account1:radmin -K old_pass -r account1 radmin new_pass

BUG: https://bugs.launchpad.net/gluster-swift/+bug/1262227

Change-Id: I604da5aee67099b29541eb7e51a040a041f1961b
Signed-off-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6650
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes,TCs for user/account operation by non super_admin users</title>
<updated>2014-01-07T02:28:54+00:00</updated>
<author>
<name>Pushpesh Sharma</name>
<email>psharma@redhat.com</email>
</author>
<published>2013-12-18T14:52:15+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=331bc6ce85cf46a26f39634924ac0f49bd2a149f'/>
<id>331bc6ce85cf46a26f39634924ac0f49bd2a149f</id>
<content type='text'>
This commit does following:
1.New functions in Utils based on CLI
2.Fixes for existing suite
3.Test cases for non super_admin users doing user/account operations

I tried to cover most of the possible test cases that can be duducted
from the swauth dev guide and swuath user role matrix.These resources
can be found here:
https://raw.github.com/rbeede/swauth/master/doc/source/Draft%20Security%20Guide/swift_swauth_roles_matrix.png
http://gholt.github.io/swauth/dev/

Change-Id: I3267a718e5432cddc751ec53fe9b05ef9061a5e3
Signed-off-by: Pushpesh Sharma &lt;psharma@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6537
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit does following:
1.New functions in Utils based on CLI
2.Fixes for existing suite
3.Test cases for non super_admin users doing user/account operations

I tried to cover most of the possible test cases that can be duducted
from the swauth dev guide and swuath user role matrix.These resources
can be found here:
https://raw.github.com/rbeede/swauth/master/doc/source/Draft%20Security%20Guide/swift_swauth_roles_matrix.png
http://gholt.github.io/swauth/dev/

Change-Id: I3267a718e5432cddc751ec53fe9b05ef9061a5e3
Signed-off-by: Pushpesh Sharma &lt;psharma@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6537
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gswauth: Fix 403 being returned instead of 401</title>
<updated>2013-12-18T12:12:43+00:00</updated>
<author>
<name>Prashanth Pai</name>
<email>ppai@redhat.com</email>
</author>
<published>2013-11-22T06:43:09+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=a8c84cb2da77ab294edbdc113985125f9a8acb95'/>
<id>a8c84cb2da77ab294edbdc113985125f9a8acb95</id>
<content type='text'>
- 401(Unauthorized) is to be returned when user credentials are
  wrong where as 403(Forbidden) is to be returned when user
  credentials are correct but the user doesn't have the priveleges
  to carry out the operation.

- Also error messages displayed when using swauth-* command line
  utilities have been updated.

Change-Id: I485786896ad14d3263f4325d1857cacc93adab96
Signed-off-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6336
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Signed-off-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6447
Reviewed-by: Thiago Da Silva &lt;thiago@redhat.com&gt;
Tested-by: Thiago Da Silva &lt;thiago@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 401(Unauthorized) is to be returned when user credentials are
  wrong where as 403(Forbidden) is to be returned when user
  credentials are correct but the user doesn't have the priveleges
  to carry out the operation.

- Also error messages displayed when using swauth-* command line
  utilities have been updated.

Change-Id: I485786896ad14d3263f4325d1857cacc93adab96
Signed-off-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6336
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Tested-by: Luis Pabon &lt;lpabon@redhat.com&gt;
Signed-off-by: Prashanth Pai &lt;ppai@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6447
Reviewed-by: Thiago Da Silva &lt;thiago@redhat.com&gt;
Tested-by: Thiago Da Silva &lt;thiago@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>renaming swauth tools to gswauth</title>
<updated>2013-12-06T15:44:08+00:00</updated>
<author>
<name>Thiago da Silva</name>
<email>thiago@redhat.com</email>
</author>
<published>2013-12-03T23:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-swift.git/commit/?id=caa8818eee7a3224c7d2c4fc14d5110e7b41df39'/>
<id>caa8818eee7a3224c7d2c4fc14d5110e7b41df39</id>
<content type='text'>
cli tools for account and user mgmt have been renamed
from swauth-* to gswauth-*

Updated other configuration and test files accordingly

Change-Id: Iced3bb27fbd09da45754ddb264f8fb4528ab423c
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6417
Reviewed-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Tested-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Reviewed-by: Shilpa MJ &lt;smanjara@redhat.com&gt;
Tested-by: Shilpa MJ &lt;smanjara@redhat.com&gt;
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cli tools for account and user mgmt have been renamed
from swauth-* to gswauth-*

Updated other configuration and test files accordingly

Change-Id: Iced3bb27fbd09da45754ddb264f8fb4528ab423c
Signed-off-by: Thiago da Silva &lt;thiago@redhat.com&gt;
Reviewed-on: http://review.gluster.org/6417
Reviewed-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Tested-by: pushpesh sharma &lt;psharma@redhat.com&gt;
Reviewed-by: Shilpa MJ &lt;smanjara@redhat.com&gt;
Tested-by: Shilpa MJ &lt;smanjara@redhat.com&gt;
Reviewed-by: Luis Pabon &lt;lpabon@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
