9dffe8b88debfa082d5b98f58aa9bc6234f3b2db
Commit Graph

4048 Commits

Author SHA1 Message Date
John Dickinson
ff37407f8f fixed tests, typos, and added error handling 2010年09月15日 03:32:47 -05:00
John Dickinson
5121843776 handled some typos and better handling of missing data in internal proxy 2010年09月15日 03:17:56 -05: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
John Dickinson
803f26c306 merged with trunk 2010年09月10日 15:09:41 -05: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
John Dickinson
7763e541eb added (working) stats tests 2010年09月01日 17:06:01 -05:00
John Dickinson
fc9e26a44e access log parsing tests pass 2010年09月01日 16:33:44 -05:00
John Dickinson
1cae6e257d merged with trunk 2010年09月01日 15:04:35 -05:00
John Dickinson
fed5e315eb first test working 2010年09月01日 15:02:54 -05:00
John Dickinson
1f83f7e6fd initial tests for the stats system 2010年09月01日 09:35:54 -05: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
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