5c1a7871d9173db9fbd855b72a98ecd8ff163800
33 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
David Hadas
|
6d59cbf596 |
Swift tests for unicode headers
Swift functional tests sends ilegal headers (unicode) and expects these headers to be processed by Swift. Apache2 seem to remove such headers which is a sound behavior for illegal headers. This change restrict the test tpo exist only for swift integral web front end. For future it is advised to disallow such behaviour. For example it is suggested to make the decission that in future APIs illegal headers are removed rather than processed. Change-Id: Ibf548f474de3f06a2687f8f4812beaeaf81ab216 Fixes: Bug #1189123 |
||
|
Fabien Boucher
|
e7ce290904 |
Metadata retrieving from sqlite must be str for key
Encode metadata key as utf8 if key is unicode when retriving it from sqlite database. Change-Id: I4ba11543d1bed17098b5e52dd768c75b403188a1 Fixes: bug #1172202 |
||
|
Greg Lange
|
44f00a23c1 |
fixed some minor things in tests that pyflakes complained about
Change-Id: Ifeab56a964630bcf941e932fcbe39e6572e62975 |
||
|
Pete Zaitcev
|
35e07e2982 |
Permit functional tests against Swift with Keystone
While poking at such problems with authentication other than swauth it was useful to allow stock functional tests running back-to-back at two clusters, with tempauth and Keystone. When running the legacy tests, this version packs account into user the way it was down previously. This way we do not need to repack them before every call to get_auth. The downside is additional work to be done when setting ACLs. Change-Id: Ieb1d9227cb88977ecd2c39825039bc4be8afae0b |
||
|
David Hadas
|
40782ed20c |
Support tests for Apache
Add support for functional tests that work with Apache web front end Change-Id: I72358a12016eeccc842d834461dbebaa188aa117 Implements: blueprint wsgi-application-interface |
||
|
gholt
|
592d895e31 |
Reject names with NULL characters
Unfortunately, SQLite truncates strings with null characters. Additionally, XML pretty much hates them too. Change-Id: Id9a8eaa27b841db6350d6959c202d3e3d6462b35 |
||
|
gholt
|
9302c5ffc1 |
Fix permissions from last commit
Change-Id: I3bad8c2995d4daf1e7798fae2c59b409608cbc45 |
||
|
Sascha Peilicke
|
08a110bdbc |
Add a license header to functionalnosetests
Change-Id: I413d8bb9cbdea1f67ab2649ab0cc4a05a7a65883 |
||
|
Jason Johnson
|
48ebd6732e |
Replace hard-coded test accounts with user-configured values
Change-Id: I824ba5f231e252b923abc895f757137855a93d3a |
||
|
Michael Barton
|
34ca0f097c |
give swob default content-type
This should fix up the few remaining API regressions from swob, by giving all responses a default content-type of "text/html; charset=UTF-8". Change-Id: Ib3b859e63c5e8c4af6f7fe535947402b5df57399 |
||
|
Chmouel Boudjnah
|
22572b506a |
Remove swift.common.client from here.
- It has been to its own gerrit project. - direct_client should follow next. - Implements blueprint clientbindings. Change-Id: I3bb50c95eba81302bfec71cb7ce5288b85a41dc0 |
||
|
Dan Dillinger
|
f7fdb9cf12 |
Implement unit_test config to disable syslog.
bug 701248 bug 819303 This change makes syslog optional, by providing a unit test config with the ability to cause test/unit/__init__.py to replace SysLogHandler with a fake logging class. The default behavior is unchanged. FakeLogger now inherits directly from Handler and mocks out its API - this was a backward-compatibility issue. Change-Id: I653dec148c4f6cf81759de03964c6a3290c1a290 |
||
|
David Goetz
|
9be62bd9cd | rolling back xml changes bzr merge -r319..318 | ||
|
gholt
|
082b324bc3 | Update to comply with XML 1.1: No NULLs in names allowed; control chars are converted to entities (ex: ) | ||
|
gholt
|
2d2150bde7 | Updated func tests and made swauth .rlistings check a bit easier to read | ||
|
Clay Gerrard
|
bdba519e02 | PEP8 | ||
|
Clay Gerrard
|
92a5414f25 | went ahead and spoofed a [func_test] section | ||
|
Clay Gerrard
|
c1b3c8d799 | better error messages on missing/malformed configs | ||
|
Clay Gerrard
|
49ea0201f7 | made functionalnosetests works with no account usernames | ||
|
gholt
|
1e34f1afe8 | Merge from trunk | ||
|
Clay Gerrard
|
2bbc9b3443 | added functional test for copy, fixed bug in copy method | ||
|
gholt
|
e398717b73 | Merge from trunk | ||
|
gholt
|
35f3487879 | Incorporated Swauth into Swift as an optional DevAuth replacement. | ||
|
gholt
|
fa3c871f0b | Server-side implementation for segmented objects | ||
|
Clay Gerrard
|
208d7b8e00 | fixed auth_copy bug, and early denial for proxy.server.ObjectController.COPY method; added tests | ||
|
gholt
|
ce48a3c709 | Fix tests; fix copy/auth problem | ||
|
Clay Gerrard
|
dc5f0be414 | added failing test for COPY from private container | ||
|
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 | ||
|
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. | ||
|
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 | ||
|
Clay Gerrard
|
2477744704 | updated skipped functional tests to raise nose.SkipTest | ||
|
gholt
|
cfcfdd3de1 | Refactored auth and adding ACLs using repoze.what | ||
|
gholt
|
47d6d7a10c | Argh. Forgot the tests themselves! |