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
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
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
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
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
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
Stephon Striplin
2efa622751
Add atomic read tests
2011-08-29 13:14:18 -07:00
Stephon Striplin
f232f43d0b
update attr decorators for dho
...
* passes test_object_raw_put_authenticated
* fails test_atomic_write_bucket_gone
2011-08-29 12:47:17 -07:00
Stephon Striplin
eeaeec573b
don't delete key in atomic gone test
...
The key hasn't been written to the server so it doesn't need a delete
2011-08-29 12:36:00 -07:00
Stephon Striplin
3d775a02f4
add raw PUT tests
2011-08-26 13:45:37 -07:00
Stephon Striplin
76f78c0bb8
refactor raw GET tests
...
urllib2 is no longer necessary. We will use urlparse instead to get the
path and query components of the uri.
2011-08-26 13:42:31 -07:00
Stephon Striplin
aa700f1c8a
add an atomic put test for removing bucket
2011-08-25 17:20:11 -07:00
Stephon Striplin
18d0b7d250
Add raw GET tests
2011-08-25 11:39:50 -07:00
Stephon Striplin
ea3f73ef90
add bucket list data vs object data comparison tests
...
* test_bucket_list_return_data
* test_bucket_list_object_time
2011-08-11 15:58:26 -07:00
Stephon Striplin
fd68aa2b5b
remove superfluous code in test_bucket_list_maxkeys_zero
2011-08-11 15:52:16 -07:00
Stephon Striplin
16d84101e4
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
2011-08-11 13:42:10 -07:00
Stephon Striplin
5e7792e0bf
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.
2011-08-11 11:23:43 -07:00
Stephon Striplin
80d332346f
Switch tests using '\a' to '\n'
...
As noted in ce3d448d64
, This will avoid
SAX parser errors.
2011-08-11 11:21:17 -07:00
Tommi Virtanen
76faa58bf7
DHO does not support bucket logging currently.
2011-08-11 09:31:20 -07:00
Tommi Virtanen
ce3d448d64
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.
2011-08-11 09:30:26 -07:00
Tommi Virtanen
48e078a758
Flag test_bucket_list_maxkeys_unreadable as failing on dho & rgw.
2011-08-11 09:28:48 -07:00
Tommi Virtanen
7da111aa7e
Test that S3 object write replaces the metadata.
...
See http://tracker.newdream.net/issues/1352
2011-08-10 15:04:19 -07:00
Stephon Striplin
0e9935a01e
refactor/add additional prefix/delimiter bucket list tests
2011-08-10 12:05:28 -07:00
Stephon Striplin
f855beff73
add marker bucket list tests
2011-08-09 18:42:06 -07:00
Stephon Striplin
1f2810557f
add maxkeys bucket list tests
2011-08-09 18:35:18 -07:00
Stephon Striplin
e7f66f178e
add test for no bucket list delimiter
2011-08-09 15:02:54 -07:00
Stephon Striplin
881c09f626
add test for checking bucket list with no prefix
2011-08-08 17:39:02 -07:00
Stephon Striplin
0e698734b6
add non-existant prefix bucket list test
2011-08-08 17:24:40 -07:00
Stephon Striplin
c89404ba68
remove fails_on_dho/rgw on test_bucket_list_many
2011-08-08 16:40:14 -07:00
Stephon Striplin
854dcc5b10
create additional parameterized bucket list tests
...
* Test on prefix and delimiter, including slash and non-slash
delimiters.
2011-08-08 15:16:15 -07:00
Tommi Virtanen
82a645c625
Demonstrate rgw bucket listing bug.
...
Discovered by stumbling on the "deleted_cnt" workaround
in s3tests.common.
TODO: Add tests for rest of the functionality in
http://docs.amazonwebservices.com/AmazonS3/latest/API/index.html?RESTBucketGET.html
2011-07-28 11:00:47 -07:00
Kyle Marsh
68c8f4b87c
s3-tests: Object download response code test
...
If a client specifies a range when requesting an object the server should
respond with 206 Partial Content when answering a request to get an object,
not 200 OK. It should also respond with only those bytes requested.
This commit introduces a test, test_ranged_request_response_code, that
checks those criteria.
2011-07-27 15:01:13 -07:00
Stephon Striplin
ee28900620
add test_object_create_unreadable
2011-07-25 11:25:39 -07:00
Yehuda Sadeh
9b3cdf753f
test consistency of bucket acls, exercises cache
2011-07-21 14:10:05 -07:00
Stephon Striplin
338728ecd2
add test_bucket_acl_no_grants
...
When the owner has no grants on their bucket, they should not be able to
write to it, but still read and write the ACL. Amazon allows users to
read the bucket, and our behavior is consistent with this.
2011-07-20 12:30:23 -07:00
Stephon Striplin
510b6e91d4
refactor and fix some acl_grant tests
2011-07-19 11:16:11 -07:00
Stephon Striplin
5136608e76
fix test_bucket_acl_grant_nonexist_user
...
* Change user_id to avoid name conflict
* Check for error_code
2011-07-15 14:57:46 -07:00
Stephon Striplin
03a80e6121
add acl grant userid tests
...
* Refactor some acl grant user_id code and run through the full suite of
acls
2011-07-15 14:34:08 -07:00
Yehuda Sadeh
3303b0f33b
fix 100-continue test to support https
2011-07-14 16:26:46 -07:00
Tommi Virtanen
91a39caf46
Fix bug where prefix was None.
...
Accessing a non-constant global from another module is tricky,
as the import binds to the original object. Rebinding the name
in the original module does not change it in importers. Use a
getter as a quick workaround.
2011-07-13 14:49:07 -07:00
Tommi Virtanen
33b25c577e
Move setup/teardown into s3tests.functional __init__, to share across modules.
2011-07-11 15:24:39 -07:00
Tommi Virtanen
e9ad6f7ee6
Move test_s3 into s3tests.functional, so it can be split to multiple files nicely.
2011-07-11 15:24:39 -07:00