]>
git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/log
Yehuda Sadeh [Mon, 3 Jun 2013 19:18:05 +0000 (12:18 -0700)]
Merge pull request #7 from wyllys66/issue6
Fixed contentlength_negative tests to ignore the error_code
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Wyllys Ingersoll [Mon, 3 Jun 2013 19:07:21 +0000 (15:07 -0400)]
Fixed contentlength_negative tests to ignore the error_code
Sage Weil [Tue, 7 May 2013 04:36:43 +0000 (21:36 -0700)]
Merge remote-tracking branch 'gh/next'
Yehuda Sadeh [Fri, 1 Mar 2013 23:54:04 +0000 (15:54 -0800)]
Merge pull request #5 from ceph/wip-migrate-test1
generate_objects: use rewind=True in upload_objects
Matthew Wodrich [Thu, 28 Feb 2013 04:02:25 +0000 (20:02 -0800)]
generate_objects: use rewind=True in upload_objects
Use the rewind=True argument when uploading objects to make
realistic.py's use of upload_objects compatible with boto>=2.4.1, which
will try to seek to the end of the fp if rewind is not True.
Yehuda Sadeh [Wed, 20 Feb 2013 21:55:35 +0000 (13:55 -0800)]
test_s3: reduce multipart tests sizes
Tests were dominating run time
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
caleb miles [Wed, 31 Oct 2012 19:32:03 +0000 (15:32 -0400)]
test_s3: test multi-part uploads using boto provided functionality.
Tests the implementation of multi-part upload and verifies written
object.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
caleb miles [Thu, 7 Feb 2013 20:58:32 +0000 (15:58 -0500)]
test_s3: Add test of ACL grants through HTTP headers.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
Yehuda Sadeh [Wed, 20 Feb 2013 01:58:54 +0000 (17:58 -0800)]
test_s3: fix test_list_multipart_upload
test wasn't really testing what it should have
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
caleb miles [Fri, 1 Feb 2013 21:01:31 +0000 (16:01 -0500)]
test_s3: Add tests for additional canned acl support.
Corresponds to tracker issue 3667.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
Yehuda Sadeh [Wed, 6 Feb 2013 18:31:19 +0000 (10:31 -0800)]
test_s3: check stats correct after multipart upload
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Tue, 29 Jan 2013 21:04:43 +0000 (13:04 -0800)]
requirements.txt: change requests package requirement
Specifying a specific version number (0.14.0). Newer version (1.1.0)
does not handle POST redirect correctly.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 23 Jan 2013 18:41:38 +0000 (10:41 -0800)]
rgw: fix post tests to include tcp port
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 18 Jan 2013 18:35:31 +0000 (10:35 -0800)]
rgw: remove more fails_on_dho tags
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 18 Jan 2013 18:23:09 +0000 (10:23 -0800)]
rgw: remove fails_on_dho tags
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 16 Jan 2013 22:39:25 +0000 (14:39 -0800)]
test_s3: add test_object_copy_canned_acl
test copy object with canned acl modification
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 18 Jan 2013 17:57:01 +0000 (09:57 -0800)]
rgw: add missing fails_on_dho to post tests
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Mon, 15 Oct 2012 22:57:42 +0000 (15:57 -0700)]
s3tests: fix post tests
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
caleb miles [Mon, 15 Oct 2012 17:59:10 +0000 (13:59 -0400)]
test_s3: Add tests of post object.
Tests the implementation of browser based uploads via a POST request.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
caleb miles [Thu, 9 Aug 2012 22:51:07 +0000 (15:51 -0700)]
test_s3: Add a test of multi-object delete.
Tests the implementation of the multi-object delete function call.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
Yehuda Sadeh [Fri, 6 Jul 2012 22:17:18 +0000 (15:17 -0700)]
test_s3: add a test for response header modification
Testing response header fields modification by specified params.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 6 Jul 2012 21:44:22 +0000 (14:44 -0700)]
test_s3: remove extra code block
Code was duplicated by mistake. Removing it.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Kyle Bader [Tue, 3 Jul 2012 23:28:59 +0000 (16:28 -0700)]
Add strict RFC2616 attributes to metadata tests
Some proxies/load balancers may sanitize input and may remove
headers that are not RFC 2616 complaint. This allows several
tests to be skipped if you are putting one of these products
in front of an S3 compatible API.
Yehuda Sadeh [Fri, 15 Jun 2012 01:58:17 +0000 (18:58 -0700)]
annotate tests with fails_on_dho
Should be reverted once fixes are pushed to the dho branch.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 15 Jun 2012 00:07:46 +0000 (17:07 -0700)]
test two cases in copying object to itself
- should fail when not trying to change metadata
- should succeed when changing metadata; also verify metadata
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 14 Jun 2012 20:56:45 +0000 (13:56 -0700)]
set boto version for 2.4.1
2.5.x has an issue when a 400 response is returned.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 23 May 2012 19:35:56 +0000 (12:35 -0700)]
boto: bump required version to 2.1
We now pass rewind param to key.set_contents_from_file,
which requires >= 2.1
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 16 May 2012 23:34:18 +0000 (16:34 -0700)]
realistic.py: update seek() implementation
seek() requires whence param. Missing it broke readwrite test with
boto 2.4.0.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 16 May 2012 20:32:33 +0000 (13:32 -0700)]
test_s3: key.set_contents_from_file() rewind on dual write
This fixes a failure with boto 2.4.0.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 16 May 2012 20:30:39 +0000 (13:30 -0700)]
test_s3: fix FakeFile.seek(): handles whence param
beforehand we didn't accept the seek() whence param, which
failed with boto 2.4.0.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 19 Apr 2012 20:33:08 +0000 (13:33 -0700)]
add functional tests for bucket HEAD
Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
Yehuda Sadeh [Mon, 2 Apr 2012 21:38:39 +0000 (14:38 -0700)]
functional: test that bucket recreation doesn't override index
This resolves issue #1853.
Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
Yehuda Sadeh [Wed, 15 Feb 2012 20:45:31 +0000 (12:45 -0800)]
fix atomic_write test, don't resuse same key handle for read and write
Yehuda Sadeh [Sat, 11 Feb 2012 05:19:23 +0000 (21:19 -0800)]
set fails_on_dho on test_bucket_create_special_key_names
Yehuda Sadeh [Sat, 11 Feb 2012 00:53:06 +0000 (16:53 -0800)]
test '%' as a valid char for object name
Yehuda Sadeh [Tue, 7 Feb 2012 01:04:24 +0000 (17:04 -0800)]
add test_bucket_create_special_key_names
Yehuda Sadeh [Tue, 7 Feb 2012 00:38:42 +0000 (16:38 -0800)]
add test_object_copy_zero_size
Steven Berler [Fri, 30 Dec 2011 19:05:12 +0000 (19:05 +0000)]
precompute files in readwrite tool
Makes the readwrite tool precompute a set of files and reuse them
when writing objects rather than generating each file on the fly.
Mark Kampe [Thu, 22 Dec 2011 21:08:03 +0000 (13:08 -0800)]
RGW test-case annotation for inventory.
Annotated S3 functional and error-detection test cases
with resource/method/operation/assertion properties to
enable automatic test case inventory generation.
Signed-off-by: Mark Kampe <mark.kampe@dreamhost.com>
Mark Kampe [Thu, 22 Dec 2011 21:04:30 +0000 (13:04 -0800)]
Added descriptions of what the fuzzer is and does.
Signed-off-by: Mark Kampe <mark.kampe@dreamhost.com>
Steven Berler [Thu, 22 Dec 2011 23:21:58 +0000 (23:21 +0000)]
improve random file generation performance
Makes the random file generator not generate more data
than the size of the file. Previously it would generate
1 MB of data even if the file was much smaller.
Steven Berler [Sat, 17 Dec 2011 01:54:59 +0000 (01:54 +0000)]
readwrite analysis tool
Adds a tool to analyze the output from the readwrite and roundtrip tools.
The output format is similar to the output from siege.
Yehuda Sadeh [Tue, 22 Nov 2011 22:46:53 +0000 (14:46 -0800)]
test_bucket_create_bad_contentlength_empty should use its own connection
since it can leave the connection in a wierd state
Yehuda Sadeh [Tue, 22 Nov 2011 21:25:42 +0000 (13:25 -0800)]
add bucket header tests
Matthew Wodrich [Fri, 4 Nov 2011 23:29:54 +0000 (16:29 -0700)]
Mark tests that fail with subdomain calling format
Add @attr('fails_with_subdomain') on all tests that should fail when
subdomain calling format is used, because they break DNS rules.
Matthew Wodrich [Thu, 3 Nov 2011 17:22:23 +0000 (10:22 -0700)]
add calling_format switch in functional and common
Add calling_format switch with options ordinary, subdomain, and vhost to
s3tests/functional/__init__.py and /s3tests/common.py to allow the use
of OrdinaryCallingFormat, SubdomainCallingFormat, and VHostCallingFormat
in the config files for the nosetests and the tools using the common
parser.
Stephon Striplin [Fri, 28 Oct 2011 19:46:12 +0000 (12:46 -0700)]
add fails_on_dho on a failing test
It turns out that the e-mail comments were legitimate. The reason the
tests were passing was because the specific users now had e-mail
addresses, but this not the default case.
Kyle Marsh [Wed, 19 Oct 2011 21:01:55 +0000 (14:01 -0700)]
Update docstring for generate_objects
Tommi Virtanen [Thu, 13 Oct 2011 20:35:56 +0000 (13:35 -0700)]
Let nose run s3tests in parallel.
This decreases the run time significantly.
Unfortunately, there seem to be cleanup-related bugs
in parallel runs for now. It's not safe to actually
run with --processes=N >1 yet, but at least the right
magic incantation is now recorded.
Tommi Virtanen [Thu, 13 Oct 2011 20:34:23 +0000 (13:34 -0700)]
Move fuzzer under s3tests/fuzz.
This way, its unit tests are separate from s3tests/functional,
and s3tests/functional is the thing that actually talks to an
S3 implementation over the wire.
To actually run the fuzzer, use ./virtualenv/bin/s3tests-fuzz-headers
Tommi Virtanen [Wed, 12 Oct 2011 22:47:28 +0000 (15:47 -0700)]
Merge remote branch 'github/fuzz_headers'
Stephon Striplin [Thu, 6 Oct 2011 23:19:43 +0000 (16:19 -0700)]
remove fails_on_{dho,rgw} on passing tests
Sage Weil [Wed, 5 Oct 2011 23:04:20 +0000 (16:04 -0700)]
add s3tests.functional.test_s3.test_bucket_list_distinct
Sage Weil [Mon, 26 Sep 2011 20:37:16 +0000 (13:37 -0700)]
add fails_on_dho to test_object_create_bad_authorization_unreadable
Stephon Striplin [Fri, 23 Sep 2011 22:14:26 +0000 (15:14 -0700)]
add fail_on_rgw on test_object_create_bad_authorization_unreadable
Stephon Striplin [Thu, 22 Sep 2011 20:07:02 +0000 (13:07 -0700)]
Rename object acl test
Stephon Striplin [Thu, 22 Sep 2011 19:50:13 +0000 (12:50 -0700)]
add no Content-Length PUT object acl test
Kyle Marsh [Mon, 12 Sep 2011 19:35:10 +0000 (12:35 -0700)]
S3 Fuzzer: httplib error handling
Sometimes httplib will through a BadStatusLine error that the fuzzer should
catch and register as a failure.
Kyle Marsh [Fri, 9 Sep 2011 15:36:51 +0000 (08:36 -0700)]
S3-Fuzzer: add objects to decision graph
Add objects to the fuzzer's attack surface description
Kyle Marsh [Wed, 24 Aug 2011 19:39:12 +0000 (12:39 -0700)]
S3 Fuzzer: changed output and failure catching.
Kyle Marsh [Tue, 23 Aug 2011 22:08:18 +0000 (15:08 -0700)]
S3 Fuzzer: Output and garbage data tweaks.
- Output tweaks
- added support for printable_no_whitespace and binary_no_whitespace
Kyle Marsh [Fri, 19 Aug 2011 22:58:22 +0000 (15:58 -0700)]
S3 Fuzzer: remove num-retries override
Overriding num-retries to 0 sometimes causes boto to fail when the server
doesn't respond fast enough. Removing the override shouldn't cause any
problems with the fuzzer.
Kyle Marsh [Fri, 19 Aug 2011 22:40:16 +0000 (15:40 -0700)]
S3 Fuzzer: PRNG Seed and decisiong graph fixes
- Change random seed generator to always spit out ints between 0 and 100,000
- Fix seeds so randomly generated seeds are *actually* the same as those seeds
read from a file.
- Tweaks to decision graph
Remaining Bugs:
- Single } encountered in format string
- _mexe complains about "BadStatusLine"
Kyle Marsh [Fri, 19 Aug 2011 21:54:24 +0000 (14:54 -0700)]
S3 Fuzzer: Start Fuzzing
- tweak yaml decision graph
- add test setup bucket creation, etc.
- add output with varying levels of verbosity
Kyle Marsh [Thu, 18 Aug 2011 21:11:54 +0000 (14:11 -0700)]
S3 Fuzzer: finish describing bucket operations
Finishing touches on decision graph for bucket operations.
Kyle Marsh [Thu, 18 Aug 2011 19:34:56 +0000 (12:34 -0700)]
S3 Fuzzer: Change how random data works
Remove SpecialVariables dict subclass in favor of RepeatExpandingFormatter
string.Formatter subclass.
Kyle Marsh [Thu, 18 Aug 2011 00:06:53 +0000 (17:06 -0700)]
S3 Fuzzer: start writing nodes for bucket PUTs
Continue working on decision graph; add PUT requests for buckets.
Kyle Marsh [Mon, 15 Aug 2011 21:16:40 +0000 (14:16 -0700)]
S3 Fuzzer: Incorporate Tv's suggestions
Tv looked over the fuzzer and had some idiomatic and design suggestions.
Adds several tests and reworks how expansion happens in addition to idiom
changes.
Kyle Marsh [Thu, 11 Aug 2011 22:18:27 +0000 (15:18 -0700)]
S3 Fuzzer: Write Decision Graph
Start writing the decision graph describing the fuzzer's attack surface in
earnest.
Kyle Marsh [Thu, 11 Aug 2011 19:25:13 +0000 (12:25 -0700)]
S3 Fuzzer: Handle null choices
Sometimes you might want to have your current node terminate the descent or
set something to the empty string.
Kyle Marsh [Thu, 11 Aug 2011 18:32:18 +0000 (11:32 -0700)]
S3 Fuzzer: Implmented headers and made random safe
Random can sometimes include } or { which will confuse the string formatter.
Formatter escapes those values when they're doubled: }}, {{ but this
required some slight hacking to the expander.
Kyle Marsh [Wed, 10 Aug 2011 22:10:24 +0000 (15:10 -0700)]
S3 Fuzzer: set values can be weighted lists now
Kyle Marsh [Wed, 10 Aug 2011 21:39:25 +0000 (14:39 -0700)]
S3 Fuzzer: Added binary mode to random data generator
Kyle Marsh [Wed, 10 Aug 2011 20:26:00 +0000 (13:26 -0700)]
S3 Fuzzer: support weights for choices
Kyle Marsh [Wed, 10 Aug 2011 18:27:06 +0000 (11:27 -0700)]
S3 Fuzzer: implemented decision expansion
Decision reached by descending the graph describing the attack surface can
be expanded to fill in all the placeholders
Kyle Marsh [Tue, 9 Aug 2011 22:44:25 +0000 (15:44 -0700)]
S3 Fuzzer: Added SpecialVariables dict subclass
Helper class to catch sentinal keys and turn them into random values. This
will be used to generate garbage data when expanding a decision.
Also add unit tests for expand_decision and assemble_decision
Kyle Marsh [Tue, 9 Aug 2011 18:56:38 +0000 (11:56 -0700)]
S3 Fuzzer: began writing graph descent
still missing headers and choice weights
Kyle Marsh [Mon, 8 Aug 2011 23:51:10 +0000 (16:51 -0700)]
S3 Fuzzer: Change direction towards decision tree
Fuzzer now builds requests based on a DAG that describes the request space
and attack surface.
Kyle Marsh [Fri, 5 Aug 2011 18:42:33 +0000 (11:42 -0700)]
S3 Fuzzer: add authorization to FuzzyRequest
Kyle Marsh [Thu, 4 Aug 2011 23:59:32 +0000 (16:59 -0700)]
S3 Fuzzer: Begin writing unit tests for S3 Fuzzer
Kyle Marsh [Thu, 4 Aug 2011 00:00:02 +0000 (17:00 -0700)]
S3 Fuzzer: Add skeleton for a targeted S3 Fuzzer
Stephon Striplin [Thu, 25 Aug 2011 21:32:45 +0000 (14:32 -0700)]
Add atomic read tests
Stephon Striplin [Mon, 29 Aug 2011 19:47:17 +0000 (12:47 -0700)]
update attr decorators for dho
* passes test_object_raw_put_authenticated
* fails test_atomic_write_bucket_gone
Stephon Striplin [Mon, 29 Aug 2011 19:36:00 +0000 (12:36 -0700)]
don't delete key in atomic gone test
The key hasn't been written to the server so it doesn't need a delete
Stephon Striplin [Fri, 26 Aug 2011 20:45:37 +0000 (13:45 -0700)]
add raw PUT tests
Stephon Striplin [Fri, 26 Aug 2011 20:42:31 +0000 (13:42 -0700)]
refactor raw GET tests
urllib2 is no longer necessary. We will use urlparse instead to get the
path and query components of the uri.
Stephon Striplin [Fri, 26 Aug 2011 00:45:16 +0000 (17:45 -0700)]
add test for missing Content-Length header bucket creation
Stephon Striplin [Thu, 25 Aug 2011 23:44:18 +0000 (16:44 -0700)]
add an atomic put test for removing bucket
Stephon Striplin [Thu, 25 Aug 2011 15:07:58 +0000 (08:07 -0700)]
Add raw GET tests
Tommi Virtanen [Mon, 15 Aug 2011 21:46:03 +0000 (14:46 -0700)]
Add dependency on isodate.
Commit
ea3f73ef904d899ed28449bdc5d2bd5d7ff489f8 made
s3tests use isodate, but did not depend on it.
Stephon Striplin [Thu, 11 Aug 2011 22:56:41 +0000 (15:56 -0700)]
add bucket list data vs object data comparison tests
* test_bucket_list_return_data
* test_bucket_list_object_time
Stephon Striplin [Thu, 11 Aug 2011 22:52:16 +0000 (15:52 -0700)]
remove superfluous code in test_bucket_list_maxkeys_zero
Stephon Striplin [Thu, 11 Aug 2011 20:42:10 +0000 (13:42 -0700)]
remove fails_on_dho on passing tests
* test_object_set_get_metadata_empty_to_unreadable_prefix
* test_object_set_get_metadata_empty_to_unreadable_suffix
* test_object_set_get_metadata_empty_to_unreadable_infix
* test_object_set_get_metadata_overwrite_to_unreadable_prefix
* test_object_set_get_metadata_overwrite_to_unreadable_suffix
* test_object_set_get_metadata_overwrite_to_unreadable_infix
Stephon Striplin [Thu, 11 Aug 2011 18:23:43 +0000 (11:23 -0700)]
Switch test_bucket_list_maxkeys_unreadble to use '\n' instead of '\a'.
This avoids the SAX parser error. It also gave a different error code
from Amazon.
Stephon Striplin [Thu, 11 Aug 2011 18:21:17 +0000 (11:21 -0700)]
Switch tests using '\a' to '\n'
As noted in
ce3d448d64aeb3228305863b4b2d35dd8f2aaec6 , This will avoid
SAX parser errors.
Stephon Striplin [Thu, 11 Aug 2011 18:01:56 +0000 (11:01 -0700)]
remove contentlength zero header test
This test effectively tells the server that this request will contain no
data and any data in the body should be interpreted to be part of the
next request. By luck, we close the tcp connection beforehand so we
don't see this additional data. However, the issues caused here would
not be at the rgw/dho level.
Tommi Virtanen [Thu, 11 Aug 2011 16:35:06 +0000 (09:35 -0700)]
Flag test_object_create_bad_contenttype_unreadable as failing on both RGW and DHO.
Tommi Virtanen [Thu, 11 Aug 2011 16:31:20 +0000 (09:31 -0700)]
DHO does not support bucket logging currently.
Tommi Virtanen [Thu, 11 Aug 2011 16:30:26 +0000 (09:30 -0700)]
Switch test_object_create_unreadable to use '\n' instead of '\a'.
This avoids a SAX/boto interaction bug that is not of much interest,
yet still seems "evil" enough that it fulfills the original intent
of the test.
Add a link to the relevant bug report.
Tommi Virtanen [Thu, 11 Aug 2011 16:28:48 +0000 (09:28 -0700)]
Flag test_bucket_list_maxkeys_unreadable as failing on dho & rgw.