41 Commits

Author SHA1 Message Date
gholt
c55a069468 auth-server: Change 400 to 409 when trying to add an existing user 2010-09-15 13:11:06 -07:00
gholt
2b995be46c Bugfixes. Rest of tests. 2010-09-11 17:03:09 -07:00
gholt
b56bf3a0f3 DevAuth support for reseller admins and an initial super admin. DevAuth server no longer needs the account ring or direct account server access. Proxy server supports account PUTs. 2010-09-10 13:40:43 -07:00
gholt
a5df15005b Got rid of inter-reseller ACLs. Enforce ACLs to only work within a reseller space. Updated docs and tests. We can expand to inter-reseller in the future with ACLs like .x:RESELLER_group 2010-09-09 10:24:25 -07:00
gholt
d2ec027e22 For ACL strings: Shortened .ref to just .r, though .ref, .referer, and .referrer are all accepted. Updated 'Creating Your Own Auth Middleware' to describe how the DevAuth server works and suggestions for creating one's own. Added reseller_prefix (optional) implementation. Used urlparse in referrer_allowed. Fixed bug where group names would get lowercased by clean_acl. Changed .r:any to .r:*. Allowed .r:*.example.com to mean .r:.example.com. Made proxy log just the first authenticated group (the user) alongside the token. Moved proxy callback to clean_acl before the length check of the metadata. Cleaned up redundant logic in first proxy swift.authorize callback. Bit better docs. More and updated tests. 2010-09-08 22:37:27 -07:00
gholt
85b8d97086 Referrers now support user:pass part of URLs; rest of tests for what has changed 2010-09-06 13:26:31 -07:00
gholt
d0367fdf19 Updated direct_client to match the changes in client 2010-09-05 21:06:16 -07:00
gholt
235c0e9bd5 Fixed typos; bug fix in auth db upgrade; renamed a couple things to better reflect their new usage; updated docs 2010-09-05 19:53:08 -07:00
gholt
0066ed02d7 Per Chuck's suggestion, changed noaccess to admin access, where admin access is not the default. Also, changed swift-auth-create-account to swift-auth-add-user with changes to use optparse 2010-09-05 19:21:08 -07:00
gholt
bb01c22440 Updated tools and client.py to work with ACLs 2010-09-03 21:39:44 -07:00
gholt
28ac96b90d Simply auth middleware and document how to make your own 2010-09-03 20:47:43 -07:00
Clay Gerrard
2477744704 updated skipped functional tests to raise nose.SkipTest 2010-09-03 11:20:28 -05:00
Clay Gerrard
5bc42442a9 updated skipped tests in test.unit.obj.test_server to raise nose.SkipTest 2010-09-03 10:17:55 -05:00
gholt
cfcfdd3de1 Refactored auth and adding ACLs using repoze.what 2010-09-02 21:50:16 -07:00
Chuck Thier
158e6c3ae9 refactored bins to by more DRY 2010-08-31 23:12:59 +00:00
gholt
8f5050234f Fixed threading bug in test 2010-08-26 09:03:08 -07:00
Chuck Thier
978984d18d Refactor of swift to make better use of middleware and to use paste.deploy 2010-08-24 18:27:38 +00:00
Chuck Thier
7bbbf3dbef Renamed the cache middleware to memcache middleware 2010-08-24 13:58:32 +00:00
Caleb Tennis
17f65e0431 If you issue a write_ring to swift-ring-builder, but there's no nodes in the ring, it crashes out. This will cause it not to crash and write an empty ring.gz file.
This is mainly helpful for enabling servers on nodes before pushing out a centrally generated master ring.
2010-08-23 15:52:36 +00:00
Clay Gerrard
babd86c036 fixed pep8 warnings, updated some comments - moved swift.common.client.Connection's http_connection call into the class next to get_auth 2010-08-23 09:56:15 -05:00
Caleb Tennis
db90da2763 Remove the exception from the unit test, since we don't bomb out anymore. Also, add a warning to swift-ring-builder if you're building an empty ring, or do a write_ring and you aren't rebalanced 2010-08-21 18:21:59 +00:00
Chuck Thier
2a36fe0619 Initial commit of middleware refactor 2010-08-20 00:50:12 +00:00
Chuck Thier
2c596c0a0f Initial commit of middleware refactor 2010-08-20 00:42:38 +00:00
Clay Gerrard
7455b4d238 found a error condition in swift.common.client where the resp would not be consumed, added tests and fixed 2010-08-19 17:09:20 -05:00
Clay Gerrard
fba7dd3de3 added some tests for swift.common.client, coverage from 11% => ~66% 2010-08-19 14:27:10 -05:00
gholt
47d6d7a10c Argh. Forgot the tests themselves! 2010-08-16 19:11:19 -07:00
gholt
e8d3f260b9 Expose account/container metadata facility to external API 2010-08-16 15:30:27 -07:00
gholt
15009bb76e Added metadata to account and container servers 2010-08-10 12:18:15 -07:00
gholt
a0fdfee0ba Fix how bytes transferred are logged 2010-08-09 13:10:05 -07:00
kapil.foss@gmail.com
65358e873f pyflakes cleanups, unused modules, and variables 2010-07-30 08:20:07 -04:00
Clay Gerrard
17a108a633 removed extra assignment 2010-07-29 15:06:01 -05:00
Clay Gerrard
7ae6ec0675 typo 2010-07-29 13:31:27 -05:00
Clay Gerrard
4a27df057d moved LIMIT_LISTING const to swift.common.constraints, added test.unit.MockTrue, 100% test coverage on swift.common.constraints 2010-07-29 13:30:16 -05:00
Michael Barton
179eeb29f7 Improved fallocate and posix_fadvise no-ops when unavailable. 2010-07-29 00:44:21 +00:00
Chuck Thier
9bf26751d7 Removed tests for behavior that doesn't exist any more 2010-07-22 10:04:02 -05:00
Michael Barton
9701519b5a fix for response code for unhandled exception unit test 2010-07-19 21:19:37 +00:00
Michael Barton
62a105d774 proxy return 500 on unhandled exceptions 2010-07-19 11:54:11 +00:00
Chuck Thier
63538345f2 Modified probe tests to work with setup.py develop installs
Updated SAIO instructions to note that probe tests will reset your environment
Added the swift.egg-info directory to .bzrignore
2010-07-19 03:00:28 +00:00
gholt
f381184ae2 Make xfs-based tests optional 2010-07-13 15:04:12 -07:00
gholt
7b38b9a19a Make unit tests not require /etc/swift/*.ring.gz files 2010-07-13 14:23:39 -07:00
Chuck Thier
001407b969 Initial commit of Swift code 2010-07-12 17:03:45 -05:00