Commit graph

1080 commits

Author SHA1 Message Date
Yehuda Sadeh
abcb67dec0 test for 100-continue 2011-06-28 12:49:20 -07:00
Yehuda Sadeh
5412934ec7 multipart tests 2011-06-17 15:12:47 -07:00
Tommi Virtanen
dca19e595a Remove flawed test.
It never tested 3-character bucket names; it was prefixed by
the 30-character uniqueness mechanism. I highly doubt
3-letter bucket names will stay available for very long anyway,
so if this is wanted back, it'll need to avoid the prefix, do
it's own cleanup, and be flagged as not to be executed on
AWS, DreamHost Objects, or any production system; it'll only
work on local dev instances with a clean slate.
2011-06-10 11:53:37 -07:00
Tommi Virtanen
6de4806faa Add tests for alphanumerics as bucket name initial character.
Need to do ugly things to get the bucket prefix logic right,
cleanup manually.

This fills the hole in coverage left by
79d54ac071.
2011-06-10 11:51:18 -07:00
Tommi Virtanen
c4f820fcf0 Remove old rgw bug workaround.
test_bucket_delete_nonowner says rgw works right now.
2011-06-10 11:05:34 -07:00
Tommi Virtanen
9da6d2c87b Use assert_raises, check details of the error. 2011-06-10 10:23:57 -07:00
Tommi Virtanen
279e0fd324 Whitespace cleanup. 2011-06-10 10:21:24 -07:00
Tommi Virtanen
a85204a0e5 Refactor nonexistent bucket tests.
They can use a fixed name, nuke_prefixed_buckets guarantees the
bucket doesn't exist. Use assert_raises and check details of the
error. Move near existing non-existent bucket test.
2011-06-10 10:20:36 -07:00
Tommi Virtanen
c7816632b9 Refactor to share code, hide counter implementation. 2011-06-10 10:15:47 -07:00
Tommi Virtanen
19ac38791c Whitespace cleanup. 2011-06-10 10:11:58 -07:00
Tommi Virtanen
79d54ac071 Remove bucket name initial character tests that gave potentially false positives.
check_good_bucket_name explicitly said it cannot be used to test
the initial character. This is because of cleanup and bucket name
uniqueness limitations.

This leaves a hole in the test coverage: buckets with both letters
and digits as initial characters must work. This needs to be fixed
later.
2011-06-10 10:11:26 -07:00
Tommi Virtanen
138a83c911 Remove dead code. 2011-06-10 09:59:52 -07:00
Tommi Virtanen
35e2b3dec5 Simplify test and output problematic bucket name on failure. 2011-06-10 09:57:41 -07:00
Tommi Virtanen
53596480f2 More tests from Wesley Spikes. 2011-06-10 09:43:18 -07:00
Tommi Virtanen
818523f48c Add a test that uses Key.set_contents_from_file, to trigger 100 Continue. 2011-06-07 10:47:27 -07:00
Colin Patrick McCabe
e8a5077913 s3-tests: add test_object_giveaway
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-26 16:26:24 -07:00
Colin Patrick McCabe
75136b58b8 test_s3: fix test_object_set_valid_acl
Fix the XML in test_object_set_valid_acl to work with Amazon.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-04 15:13:45 -07:00
Colin Patrick McCabe
aca962dac2 test_s3: add test_object_set_valid_acl
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-04 12:18:27 -07:00
Yehuda Sadeh
5861b129bc add a test for setting metadata 2011-04-29 11:11:27 -07:00
Yehuda Sadeh
db70e893e5 a few more rgw tests pass now 2011-04-28 16:00:19 -07:00
Tommi Virtanen
3f0828b855 Refactor grant checking to ignore order of grants. 2011-04-18 09:58:10 -07:00
Yehuda Sadeh
344b182260 a few rgw tests work now 2011-04-15 11:41:40 -07:00
Tommi Virtanen
9b39add43f boto set_acl() works on radosgw now.
rgw bug #981 is fixed in commit 6f730af1926f9d4fe5904ac10dbe019c0a6aef8d.

Many tests now fail at the next step; did not file tickets.
2011-04-14 15:40:16 -07:00
Tommi Virtanen
fd323907f9 test_bucket_create_naming_bad_short_empty works on radosgw now.
rgw bug #983 is fixed in commit 5c06fc1c8b4e983acd7f01f7b908ba8f357621b2.
2011-04-13 16:58:23 -07:00
Tommi Virtanen
18185b4826 test_bucket_create_exists works on radosgw now.
rgw bug #978 is fixed in commit 59309b376c5356afd97a2e72f126159d2a4877ba.
2011-04-13 16:22:25 -07:00
Tommi Virtanen
7d6cb51c74 test_bucket_notexist and test_bucket_create_delete work on radosgw now.
rgw bug #976 is fixed in commit fd0290a00ac76bbfe15bb12ee35e54dc58cf074f.
2011-04-13 16:21:58 -07:00
Tommi Virtanen
d62cbf1252 Note down radosgw bugs triggered. 2011-04-05 11:10:49 -07:00
Tommi Virtanen
820104b31f More precise test for rgw bad error message. 2011-04-04 17:03:18 -07:00
Tommi Virtanen
c87555d060 MIT licensed. 2011-04-04 15:19:59 -07:00
Tommi Virtanen
46f2e3b00e Initial commit. 2011-04-04 14:45:42 -07:00