Matthew Wodrich
94cc7025fa
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.
2013-03-01 15:45:28 -08:00
Yehuda Sadeh
10a6caf4ee
test_s3: reduce multipart tests sizes
...
Tests were dominating run time
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-02-20 13:55:35 -08:00
caleb miles
4095675827
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>
2013-02-20 13:51:14 -08:00
caleb miles
27581ccf6a
test_s3: Add test of ACL grants through HTTP headers.
...
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2013-02-20 11:39:48 -08:00
Yehuda Sadeh
fd33286494
test_s3: fix test_list_multipart_upload
...
test wasn't really testing what it should have
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-02-19 18:00:15 -08:00
caleb miles
b39f25a02b
test_s3: Add tests for additional canned acl support.
...
Corresponds to tracker issue 3667.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2013-02-07 14:49:03 -08:00
Yehuda Sadeh
d4978eb4d1
test_s3: check stats correct after multipart upload
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-02-06 10:34:54 -08:00
Yehuda Sadeh
f6fb47e513
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>
2013-01-29 13:04:43 -08:00
Yehuda Sadeh
414a107b46
rgw: fix post tests to include tcp port
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-23 10:41:38 -08:00
Yehuda Sadeh
efa352711b
rgw: remove more fails_on_dho tags
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-18 10:35:31 -08:00
Yehuda Sadeh
509715810d
rgw: remove fails_on_dho tags
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-18 10:33:02 -08:00
Yehuda Sadeh
da7558e3ab
test_s3: add test_object_copy_canned_acl
...
test copy object with canned acl modification
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-18 10:07:01 -08:00
Yehuda Sadeh
761d7f290f
rgw: add missing fails_on_dho to post tests
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-18 09:57:01 -08:00
Yehuda Sadeh
83813602bc
s3tests: fix post tests
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-18 09:37:21 -08:00
caleb miles
3b2c7b6b81
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>
2013-01-18 09:37:12 -08:00
caleb miles
834800f341
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>
2012-08-28 13:42:08 -07:00
Yehuda Sadeh
09cdd45026
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>
2012-07-06 15:17:18 -07:00
Yehuda Sadeh
51450253a2
test_s3: remove extra code block
...
Code was duplicated by mistake. Removing it.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-07-06 14:45:15 -07:00
Kyle Bader
09681c62dc
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.
2012-07-03 16:28:59 -07:00
Yehuda Sadeh
3eaa877022
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>
2012-06-14 18:58:17 -07:00
Yehuda Sadeh
304e3422e2
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>
2012-06-14 17:07:46 -07:00
Yehuda Sadeh
769edeb53b
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>
2012-06-14 13:56:45 -07:00
Yehuda Sadeh
18bca10fd5
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>
2012-05-23 12:35:56 -07:00
Yehuda Sadeh
d346415f79
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>
2012-05-16 16:35:13 -07:00
Yehuda Sadeh
f1f86a0de0
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>
2012-05-16 13:32:33 -07:00
Yehuda Sadeh
adabd0ba7d
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>
2012-05-16 13:32:20 -07:00
Yehuda Sadeh
ebbafdb3e8
add functional tests for bucket HEAD
...
Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
2012-04-19 13:33:08 -07:00
Yehuda Sadeh
1551c5b087
functional: test that bucket recreation doesn't override index
...
This resolves issue #1853 .
Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
2012-04-02 14:38:39 -07:00
Yehuda Sadeh
4633fe4c12
fix atomic_write test, don't resuse same key handle for read and write
2012-02-15 12:45:31 -08:00
Yehuda Sadeh
256577fc87
set fails_on_dho on test_bucket_create_special_key_names
2012-02-10 21:19:23 -08:00
Yehuda Sadeh
54d98ff1e3
test '%' as a valid char for object name
2012-02-10 16:53:06 -08:00
Yehuda Sadeh
d196c6829d
add test_bucket_create_special_key_names
2012-02-06 17:04:24 -08:00
Yehuda Sadeh
c509158413
add test_object_copy_zero_size
2012-02-06 16:38:42 -08:00
Steven Berler
e9492927ae
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.
2011-12-30 19:05:12 +00:00
Mark Kampe
a268bcfbef
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>
2011-12-22 16:09:21 -08:00
Mark Kampe
d69a33cc35
Added descriptions of what the fuzzer is and does.
...
Signed-off-by: Mark Kampe <mark.kampe@dreamhost.com>
2011-12-22 16:09:21 -08:00
Steven Berler
a6227f8acc
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.
2011-12-22 23:21:58 +00:00
Steven Berler
aaf4219d8d
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.
2011-12-20 00:06:17 +00:00
Yehuda Sadeh
f7dde840a3
test_bucket_create_bad_contentlength_empty should use its own connection
...
since it can leave the connection in a wierd state
2011-11-22 14:46:53 -08:00
Yehuda Sadeh
a030d88e58
add bucket header tests
2011-11-22 13:25:42 -08:00
Matthew Wodrich
c749ff5043
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.
2011-11-04 16:29:54 -07:00
Matthew Wodrich
c4bded31c2
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.
2011-11-03 10:22:23 -07:00
Stephon Striplin
dec5360c92
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.
2011-10-28 12:47:25 -07:00
Kyle Marsh
44bad4c4cc
Update docstring for generate_objects
2011-10-19 14:46:22 -07:00
Tommi Virtanen
5b250e57e1
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.
2011-10-13 13:35:56 -07:00
Tommi Virtanen
27d2e40b7d
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
2011-10-13 13:34:23 -07:00
Tommi Virtanen
a18eee85fe
Merge remote branch 'github/fuzz_headers'
2011-10-12 15:47:28 -07:00
Stephon Striplin
83755e2782
remove fails_on_{dho,rgw} on passing tests
2011-10-07 12:30:15 -07:00
Sage Weil
e486100a60
add s3tests.functional.test_s3.test_bucket_list_distinct
2011-10-05 16:04:20 -07:00
Sage Weil
211df8dc22
add fails_on_dho to test_object_create_bad_authorization_unreadable
2011-09-26 13:37:16 -07:00