5c1a7871d9173db9fbd855b72a98ecd8ff163800
Commit Graph

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 
2013年06月09日 12:54:32 +03:00
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 
2013年05月15日 17:04:03 +02:00
Greg Lange
44f00a23c1 fixed some minor things in tests that pyflakes complained about
Change-Id: Ifeab56a964630bcf941e932fcbe39e6572e62975
2013年03月26日 20:42:26 +00:00
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
2013年03月10日 18:52:10 -06:00
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
2013年03月07日 01:32:16 +02:00
gholt
592d895e31 Reject names with NULL characters
Unfortunately, SQLite truncates strings with null characters.
Additionally, XML pretty much hates them too.
Change-Id: Id9a8eaa27b841db6350d6959c202d3e3d6462b35
2013年01月12日 06:54:17 +00:00
gholt
9302c5ffc1 Fix permissions from last commit
Change-Id: I3bad8c2995d4daf1e7798fae2c59b409608cbc45
2012年12月14日 18:06:29 +00:00
Sascha Peilicke
08a110bdbc Add a license header to functionalnosetests
Change-Id: I413d8bb9cbdea1f67ab2649ab0cc4a05a7a65883
2012年12月13日 11:13:50 +01:00
Jason Johnson
48ebd6732e Replace hard-coded test accounts with user-configured values
Change-Id: I824ba5f231e252b923abc895f757137855a93d3a
2012年11月27日 10:39:12 -06:00
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
2012年11月09日 10:44:26 -08:00
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
2012年06月07日 16:36:49 +02:00
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
2012年05月03日 14:25:46 -04:00
David Goetz
9be62bd9cd rolling back xml changes bzr merge -r319..318 2011年07月22日 10:54:54 -07:00
gholt
082b324bc3 Update to comply with XML 1.1: No NULLs in names allowed; control chars are converted to entities (ex: ) 2011年06月17日 00:57:00 +00:00
gholt
2d2150bde7 Updated func tests and made swauth .rlistings check a bit easier to read 2011年03月24日 23:12:36 +00:00
Clay Gerrard
bdba519e02 PEP8 2011年02月24日 16:21:14 -06:00
Clay Gerrard
92a5414f25 went ahead and spoofed a [func_test] section 2011年02月24日 12:28:17 -06:00
Clay Gerrard
c1b3c8d799 better error messages on missing/malformed configs 2011年02月24日 11:59:34 -06:00
Clay Gerrard
49ea0201f7 made functionalnosetests works with no account usernames 2011年02月23日 11:29:06 -06:00
gholt
1e34f1afe8 Merge from trunk 2010年12月30日 08:47:52 -08:00
Clay Gerrard
2bbc9b3443 added functional test for copy, fixed bug in copy method 2010年12月28日 13:33:36 -06:00
gholt
e398717b73 Merge from trunk 2010年12月20日 08:54:01 -08:00
gholt
35f3487879 Incorporated Swauth into Swift as an optional DevAuth replacement. 2010年12月01日 17:08:49 -08:00
gholt
fa3c871f0b Server-side implementation for segmented objects 2010年11月16日 15:35:39 -08:00
Clay Gerrard
208d7b8e00 fixed auth_copy bug, and early denial for proxy.server.ObjectController.COPY method; added tests 2010年11月04日 14:39:29 -05:00
gholt
ce48a3c709 Fix tests; fix copy/auth problem 2010年11月03日 14:06:30 -07:00
Clay Gerrard
dc5f0be414 added failing test for COPY from private container 2010年10月28日 16:33:54 -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
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
Clay Gerrard
2477744704 updated skipped functional tests to raise nose.SkipTest 2010年09月03日 11:20:28 -05:00
gholt
cfcfdd3de1 Refactored auth and adding ACLs using repoze.what 2010年09月02日 21:50:16 -07:00
gholt
47d6d7a10c Argh. Forgot the tests themselves! 2010年08月16日 19:11:19 -07:00