]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
9 years agos3website: Refactor strings & aid debugging 92/head
Robin H. Johnson [Thu, 21 Apr 2016 22:10:15 +0000 (15:10 -0700)]
s3website: Refactor strings & aid debugging

Refactor duplicated static sites template content, and include a debug copy of
the WebsiteConf XML in every bucket for ease of debug with the test generator.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agofunctional._make_request: go back to simple version of httplib.request.
Robin H. Johnson [Sun, 27 Mar 2016 02:36:46 +0000 (02:36 +0000)]
functional._make_request: go back to simple version of httplib.request.

The httplib.request function automatically constructs the following
headers:
content-length, host, accept-encoding

Until such time as we need to override those values in incompatible
ways, simply use it.

Fixes: https://github.com/ceph/s3-tests/pull/92#issuecomment-185970260
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agoRefactor _make_bucket_request.
Robin H. Johnson [Sat, 30 Jan 2016 17:38:45 +0000 (17:38 +0000)]
Refactor _make_bucket_request.

s3tests.functional._make_bucket_request is now a special case of
_make_request, as requested by
https://github.com/ceph/s3-tests/pull/92#commitcomment-15775972

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agowebsite: include Forbidden in 403 test per https://github.com/dreamhost/s3-tests...
Robin H. Johnson [Sat, 30 Jan 2016 17:14:15 +0000 (17:14 +0000)]
website: include Forbidden in 403 test per https://github.com/dreamhost/s3-tests/commit/802c8a3ee985a90e35b21ffab5f670c2eeecf8a9#commitcomment-15776266.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: RGW does not have custom 404 message descriptions per s3 error codes yet.
Robin H. Johnson [Fri, 29 Jan 2016 05:31:15 +0000 (05:31 +0000)]
website: RGW does not have custom 404 message descriptions per s3 error codes yet.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: Use better test annotation for routingrules tests.
Robin H. Johnson [Fri, 29 Jan 2016 04:02:08 +0000 (04:02 +0000)]
website: Use better test annotation for routingrules tests.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: Support both NoSuchWebsiteConfiguration and NoSuchKey for fetching the websi...
Robin H. Johnson [Fri, 29 Jan 2016 04:01:45 +0000 (04:01 +0000)]
website: Support both NoSuchWebsiteConfiguration and NoSuchKey for fetching the website config subresource.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agos3website: Allow tests to be skipped if website support disabled in RGW.
Robin H. Johnson [Fri, 29 Jan 2016 03:49:54 +0000 (03:49 +0000)]
s3website: Allow tests to be skipped if website support disabled in RGW.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoFix whitespace.
Robin H. Johnson [Fri, 29 Jan 2016 03:50:06 +0000 (03:50 +0000)]
Fix whitespace.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoAnnotate many tests that fail on AWS (tested on EU region)
Robin H. Johnson [Fri, 29 Jan 2016 03:28:51 +0000 (03:28 +0000)]
Annotate many tests that fail on AWS (tested on EU region)

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: Improve XML handling and x-amz-website-redirect-location tests
Robin H. Johnson [Tue, 26 Jan 2016 00:22:51 +0000 (00:22 +0000)]
website: Improve XML handling and x-amz-website-redirect-location tests

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoLots of tests, that pass on AmazonS3 unless the phase of the moon is wrong. There...
Robin H. Johnson [Tue, 23 Jun 2015 06:52:52 +0000 (06:52 +0000)]
Lots of tests, that pass on AmazonS3 unless the phase of the moon is wrong. There is a non-trivial degree of lag in S3 applying WebsiteConfiguration changes sometimes, eu-west-1 was taking 20+ seconds during part of the last day. Compounded by the Amazon eventual-consistency made developing these tests difficult at times.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoWork on tests.
Robin H. Johnson [Mon, 22 Jun 2015 17:17:18 +0000 (17:17 +0000)]
Work on tests.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoUpdate redirect checks for x-amz-website-redirect-location
Robin H. Johnson [Sun, 21 Jun 2015 05:06:26 +0000 (05:06 +0000)]
Update redirect checks for x-amz-website-redirect-location

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoUse new XML checks.
Robin H. Johnson [Sun, 21 Jun 2015 05:05:30 +0000 (05:05 +0000)]
Use new XML checks.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoAdd XML improvements.
Robin H. Johnson [Sun, 21 Jun 2015 05:04:51 +0000 (05:04 +0000)]
Add XML improvements.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoImprove test attribute.
Robin H. Johnson [Fri, 19 Jun 2015 17:09:53 +0000 (17:09 +0000)]
Improve test attribute.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoAdd tests for x-amz-website-redirect-location, code still pending.
Robin H. Johnson [Fri, 19 Jun 2015 17:09:40 +0000 (17:09 +0000)]
Add tests for x-amz-website-redirect-location, code still pending.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: refactor and add redirect testcases, so far 3 failures out of 27 new tests.
Robin H. Johnson [Fri, 19 Jun 2015 06:09:09 +0000 (06:09 +0000)]
website: refactor and add redirect testcases, so far 3 failures out of 27 new tests.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoFixup path stuff for redirect test.
Robin H. Johnson [Thu, 18 Jun 2015 04:41:09 +0000 (04:41 +0000)]
Fixup path stuff for redirect test.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoPrepare for better testcases, with fixture functions.
Robin H. Johnson [Wed, 17 Jun 2015 04:33:49 +0000 (04:33 +0000)]
Prepare for better testcases, with fixture functions.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: Clean up imports.
Robin H. Johnson [Wed, 17 Jun 2015 01:03:07 +0000 (01:03 +0000)]
website: Clean up imports.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: Start redirect tests.
Robin H. Johnson [Wed, 17 Jun 2015 00:44:06 +0000 (00:44 +0000)]
website: Start redirect tests.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: improve test structure.
Robin H. Johnson [Wed, 17 Jun 2015 00:43:46 +0000 (00:43 +0000)]
website: improve test structure.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agowebsite: bucket-level tests (indexdoc, errordoc)
Robin H. Johnson [Mon, 15 Jun 2015 05:19:13 +0000 (05:19 +0000)]
website: bucket-level tests (indexdoc, errordoc)

This adds tests for the new S3 Website code under development at on the
wip-static-website-robbat2-master branch (see the robbat2 fork).

The ErrorDoc tests with a valid uploaded ErrorDoc show that my existing
code fails as expected :-). All other IndexDoc cases pass already.

It would be nice to refactor some of this set of tests and extract
common code, because the only variation in some of them is the ACLs on a
single file.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agorefactor out _make_request and _make_bucket_request, with a common _make_raw_request...
Robin H. Johnson [Mon, 15 Jun 2015 05:18:07 +0000 (05:18 +0000)]
refactor out _make_request and _make_bucket_request, with a common _make_raw_request; ready for s3website testing.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoUse py3 print.
Robin H. Johnson [Mon, 15 Jun 2015 05:15:28 +0000 (05:15 +0000)]
Use py3 print.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agoMerge pull request #104 from zhouyuan/update_gevent_1
Loic Dachary [Tue, 12 Apr 2016 06:22:42 +0000 (08:22 +0200)]
Merge pull request #104 from zhouyuan/update_gevent_1

gevent: bump to >=1.0

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agogevent: bump to >=1.0 104/head
Yuan Zhou [Fri, 28 Aug 2015 01:07:21 +0000 (09:07 +0800)]
gevent: bump to >=1.0

There are some DNS resolving issue on 0.13.6.
Bumping to >=1.0 fixes the issues for me.

Fixes: #13885
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
9 years agoMerge pull request #99 from jmunhoz/wip-mp-cp-fails-on-rgw
Orit Wasserman [Tue, 5 Apr 2016 09:12:25 +0000 (11:12 +0200)]
Merge pull request #99 from jmunhoz/wip-mp-cp-fails-on-rgw

Add fails_on_rgw on multipart copy part tests

9 years agoAdd fails_on_rgw on multipart copy part tests 99/head
Javier M. Mellid [Mon, 28 Mar 2016 09:18:18 +0000 (09:18 +0000)]
Add fails_on_rgw on multipart copy part tests

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years agoMerge pull request #97 from ceph/wip-15243
Yehuda Sadeh [Wed, 23 Mar 2016 15:25:47 +0000 (08:25 -0700)]
Merge pull request #97 from ceph/wip-15243

rgw: add a few tests that check for null object versioning behavior

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add a few tests that check for null object versioning behavior wip-15243 97/head
Yehuda Sadeh [Wed, 23 Mar 2016 01:40:39 +0000 (18:40 -0700)]
rgw: add a few tests that check for null object versioning behavior

Deals with ceph issue #15243

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #91 from jmunhoz/wip-x-amz-expires-tc
Yehuda Sadeh [Thu, 4 Feb 2016 16:19:52 +0000 (08:19 -0800)]
Merge pull request #91 from jmunhoz/wip-x-amz-expires-tc

rgw: add X-Amz-Expires test cases

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: add X-Amz-Expires test cases 91/head
Javier M. Mellid [Wed, 27 Jan 2016 02:19:20 +0000 (02:19 +0000)]
rgw: add X-Amz-Expires test cases

Test X-Amz-Expires under AWS4 auth.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agoMerge pull request #89 from andrewgaul/atomic-multipart-upload
Yehuda Sadeh [Fri, 18 Dec 2015 20:25:59 +0000 (12:25 -0800)]
Merge pull request #89 from andrewgaul/atomic-multipart-upload

Test begin to overwrite file with MPU then abort

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoTest begin to overwrite file with MPU then abort 89/head
Andrew Gaul [Fri, 18 Dec 2015 20:12:59 +0000 (12:12 -0800)]
Test begin to overwrite file with MPU then abort

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agoMerge pull request #79 from dreamhost/wip-proxy
Yehuda Sadeh [Fri, 18 Dec 2015 20:02:08 +0000 (12:02 -0800)]
Merge pull request #79 from dreamhost/wip-proxy

Improve proxy error support: "Bad Request" case

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoImprove proxy error support: "Bad Request" case 79/head
Robin H. Johnson [Wed, 7 Oct 2015 19:31:31 +0000 (12:31 -0700)]
Improve proxy error support: "Bad Request" case

If you are run the S3 testsuite against a reverse proxy (eg haproxy)
rather than RGW directly, some of the tests will return errors from the
proxy, rather than haproxy itself.

Some proxies differ from RGW in the exact case of 'Bad Request', so do
the match in a case-insensitive manner. Haproxy for example returns 'Bad
request'.

This removes the need for some of the prior fails_on_dho test tags, as
the failure was due to haproxy.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
10 years agoMerge pull request #88 from andrewgaul/head-zero-bytes
Yehuda Sadeh [Fri, 18 Dec 2015 17:57:19 +0000 (09:57 -0800)]
Merge pull request #88 from andrewgaul/head-zero-bytes

Add test for HEAD of a zero-byte object

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #87 from dreamhost/wip-cleanup-buckets
Yehuda Sadeh [Fri, 18 Dec 2015 17:56:36 +0000 (09:56 -0800)]
Merge pull request #87 from dreamhost/wip-cleanup-buckets

s3tests: do not exit cleanup after first bucket!

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #85 from dreamhost/wip-test-issue11563
Yehuda Sadeh [Fri, 18 Dec 2015 17:56:02 +0000 (09:56 -0800)]
Merge pull request #85 from dreamhost/wip-test-issue11563

Add test for COPY Content-Type header

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #83 from andrewgaul/list-objects-public-read-bucket
Yehuda Sadeh [Fri, 18 Dec 2015 17:54:46 +0000 (09:54 -0800)]
Merge pull request #83 from andrewgaul/list-objects-public-read-bucket

Anonymously list private and public-read buckets

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #77 from andrewgaul/special-key-names
Yehuda Sadeh [Fri, 18 Dec 2015 17:52:58 +0000 (09:52 -0800)]
Merge pull request #77 from andrewgaul/special-key-names

Consolidate test_object_create_special_characters

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #73 from andrewgaul/ends-with-delimiter
Yehuda Sadeh [Fri, 18 Dec 2015 17:51:03 +0000 (09:51 -0800)]
Merge pull request #73 from andrewgaul/ends-with-delimiter

Test listing a blob which ends with delimiter

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #49 from andrewgaul/copy-bucket-key-not-found
Yehuda Sadeh [Fri, 18 Dec 2015 17:50:20 +0000 (09:50 -0800)]
Merge pull request #49 from andrewgaul/copy-bucket-key-not-found

Copy tests for non-existent buckets and keys

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #30 from andrewgaul/bucket-create-exists
Yehuda Sadeh [Fri, 18 Dec 2015 17:49:10 +0000 (09:49 -0800)]
Merge pull request #30 from andrewgaul/bucket-create-exists

Handle idempotent and BucketAlreadyOwnedByYou

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #84 from jmunhoz/wip-aws4-support
Yehuda Sadeh [Fri, 18 Dec 2015 17:46:29 +0000 (09:46 -0800)]
Merge pull request #84 from jmunhoz/wip-aws4-support

rgw: add AWS4 auth testing support

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: add AWS4 auth testing support 84/head
Javier M. Mellid [Fri, 23 Oct 2015 09:52:05 +0000 (11:52 +0200)]
rgw: add AWS4 auth testing support

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agoAdd test for HEAD of a zero-byte object 88/head
Andrew Gaul [Tue, 15 Dec 2015 08:03:37 +0000 (00:03 -0800)]
Add test for HEAD of a zero-byte object

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agoMerge pull request #86 from jmunhoz/wip-copy-mp-cc
Yehuda Sadeh [Wed, 9 Dec 2015 17:11:54 +0000 (09:11 -0800)]
Merge pull request #86 from jmunhoz/wip-copy-mp-cc

s3tests: Check content is correct on copy multipart

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agos3tests: do not exit cleanup after first bucket! 87/head
Robin H. Johnson [Wed, 2 Dec 2015 01:25:06 +0000 (17:25 -0800)]
s3tests: do not exit cleanup after first bucket!

Bucket cleanup code was exiting after the first succesful bucket
removed, instead of cleaning up all buckets. This left many buckets
behind over time, causing large slowdowns of the test suite.

This was introduced in commit c41ebab9cf93617f06084cf88c297188b4aa9f67,
when changes for versioned files were added.

Signed-off-by: Kobi Laredo <kobi.laredo@dreamhost.com>
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
Backport: hammer

10 years agos3tests: Check content is correct on copy multipart 86/head
Javier M. Mellid [Wed, 25 Nov 2015 14:50:18 +0000 (15:50 +0100)]
s3tests: Check content is correct on copy multipart

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agoAdd test for COPY Content-Type header 85/head
Robin H. Johnson [Fri, 13 Nov 2015 06:06:21 +0000 (22:06 -0800)]
Add test for COPY Content-Type header

Issue #11563 deals with the COPY command breaking the Content-Type
header. Add a test case for this to ensure it remains fixed.

Reference: http://tracker.ceph.com/issues/11563
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
10 years agoMerge pull request #76 from jmunhoz/test-requestid-on-error infernalis
Yehuda Sadeh [Thu, 29 Oct 2015 15:38:31 +0000 (08:38 -0700)]
Merge pull request #76 from jmunhoz/test-requestid-on-error

Test RequestId on error

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agos3tests: Add test_object_requestid_matchs_header_on_error 76/head
Javier M. Mellid [Wed, 9 Sep 2015 19:49:17 +0000 (21:49 +0200)]
s3tests: Add test_object_requestid_matchs_header_on_error

Error responses' RequestId must match header's x-amz-request-id value.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agos3tests: Add test_object_requestid_on_error
Javier M. Mellid [Wed, 9 Sep 2015 19:28:32 +0000 (21:28 +0200)]
s3tests: Add test_object_requestid_on_error

Error responses must contains a RequestId tag. This is the ID of the
request associated with the error.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agoMerge pull request #75 from jmunhoz/test-multipart-cp
Yehuda Sadeh [Tue, 27 Oct 2015 15:19:30 +0000 (08:19 -0700)]
Merge pull request #75 from jmunhoz/test-multipart-cp

Test multipart copy part feature

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoAnonymously list private and public-read buckets 83/head
Andrew Gaul [Mon, 12 Oct 2015 22:03:24 +0000 (15:03 -0700)]
Anonymously list private and public-read buckets

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agocheck if setting acls modifies etag in bucket listing
Yehuda Sadeh [Tue, 29 Sep 2015 15:14:48 +0000 (08:14 -0700)]
check if setting acls modifies etag in bucket listing

This checks for ceph issue #12955

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoConsolidate test_object_create_special_characters 77/head
Andrew Gaul [Fri, 11 Sep 2015 17:50:14 +0000 (10:50 -0700)]
Consolidate test_object_create_special_characters

test_bucket_create_special_key_names duplicates this test.  Add
missing cases and reformat for clarity.

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agorgw: test versioned objects with special names
Yehuda Sadeh [Thu, 10 Sep 2015 20:18:28 +0000 (13:18 -0700)]
rgw: test versioned objects with special names

E.g., objects that start with undescore

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agos3tests: Add test_multipart_copy_multiple_sizes 75/head
Javier M. Mellid [Wed, 2 Sep 2015 16:46:43 +0000 (18:46 +0200)]
s3tests: Add test_multipart_copy_multiple_sizes

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agos3tests: Add test_multipart_copy_small
Javier M. Mellid [Wed, 2 Sep 2015 16:46:07 +0000 (18:46 +0200)]
s3tests: Add test_multipart_copy_small

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agoTest listing a blob which ends with delimiter 73/head
Andrew Gaul [Wed, 12 Aug 2015 00:23:08 +0000 (17:23 -0700)]
Test listing a blob which ends with delimiter

This has a different behavior than when the blob does not end with the
delimiter.

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agoMerge pull request #70 from tobegit3hub/fix_example_in_readme
Yehuda Sadeh [Thu, 13 Aug 2015 17:31:47 +0000 (10:31 -0700)]
Merge pull request #70 from tobegit3hub/fix_example_in_readme

Fix the example which is deprecated in README.rst

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #53 from andrewgaul/mpu-invalid-parts
Yehuda Sadeh [Thu, 13 Aug 2015 17:28:45 +0000 (10:28 -0700)]
Merge pull request #53 from andrewgaul/mpu-invalid-parts

Add multipart tests with invalid parts

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #64 from andrewgaul/cache-control-expires-headers
Yehuda Sadeh [Thu, 13 Aug 2015 17:27:14 +0000 (10:27 -0700)]
Merge pull request #64 from andrewgaul/cache-control-expires-headers

Add tests for Cache-Control and Expires headers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #59 from robbat2/wip-website-fuzzy
Yehuda Sadeh [Thu, 13 Aug 2015 17:21:51 +0000 (10:21 -0700)]
Merge pull request #59 from robbat2/wip-website-fuzzy

fuzz: Write fuzzer rules for WebsiteConfiguration.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoUse test_bucket_list_empty as example in README 70/head
tobe [Mon, 3 Aug 2015 12:30:46 +0000 (20:30 +0800)]
Use test_bucket_list_empty as example in README

10 years agoFix the example which is deprecated in README.rst
tobe [Mon, 3 Aug 2015 02:32:04 +0000 (10:32 +0800)]
Fix the example which is deprecated in README.rst

Signed-off-by: tobe <tobeg3oogle@gmail.com>
10 years agoMerge pull request #66 from ceph/wip-12302
Zack Cerza [Tue, 14 Jul 2015 17:58:50 +0000 (11:58 -0600)]
Merge pull request #66 from ceph/wip-12302

Remove "--allow-hosts None" because it magically makes things work

10 years agoRemove "--allow-hosts None" because it magically makes things work 66/head
Dan Mick [Tue, 14 Jul 2015 17:19:37 +0000 (10:19 -0700)]
Remove "--allow-hosts None" because it magically makes things work

Fixes: 12302
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoAdd tests for Cache-Control and Expires headers 64/head
Andrew Gaul [Tue, 30 Jun 2015 22:42:32 +0000 (15:42 -0700)]
Add tests for Cache-Control and Expires headers

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agos3tests: fix for python 2.6
Yehuda Sadeh [Tue, 30 Jun 2015 18:26:35 +0000 (11:26 -0700)]
s3tests: fix for python 2.6

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #63 from andrewgaul/unneeded_head_bucket
Yehuda Sadeh [Tue, 30 Jun 2015 17:12:52 +0000 (10:12 -0700)]
Merge pull request #63 from andrewgaul/unneeded_head_bucket

Remove unneeded called to _head_bucket

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoRemove unneeded called to _head_bucket 63/head
Andrew Gaul [Tue, 30 Jun 2015 17:06:23 +0000 (10:06 -0700)]
Remove unneeded called to _head_bucket

Test does not consume obj_count or bytes_used and this function now
returns a dict of optional headers.

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agos3tests: adjust copy tests to test copy of larger objects
Yehuda Sadeh [Wed, 17 Jun 2015 20:10:23 +0000 (13:10 -0700)]
s3tests: adjust copy tests to test copy of larger objects

rgw has different code paths for objects > 512k

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #58 from robbat2/wip-unique-testname
Yehuda Sadeh [Wed, 17 Jun 2015 20:31:30 +0000 (13:31 -0700)]
Merge pull request #58 from robbat2/wip-unique-testname

tests must have unique names, otherwise they override existing tests.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #61 from andrewgaul/range-get-content-range
Yehuda Sadeh [Wed, 17 Jun 2015 20:30:32 +0000 (13:30 -0700)]
Merge pull request #61 from andrewgaul/range-get-content-range

Test Content-Range header in range requests

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #60 from andrewgaul/range-get-invalid-range
Yehuda Sadeh [Wed, 17 Jun 2015 20:30:17 +0000 (13:30 -0700)]
Merge pull request #60 from andrewgaul/range-get-invalid-range

Test range get with invalid range

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoTest range get with invalid range 60/head
Andrew Gaul [Wed, 17 Jun 2015 04:06:34 +0000 (21:06 -0700)]
Test range get with invalid range

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agoTest Content-Range header in range requests 61/head
Andrew Gaul [Wed, 17 Jun 2015 15:26:15 +0000 (08:26 -0700)]
Test Content-Range header in range requests

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agos3tests: fix multipart test
Yehuda Sadeh [Tue, 16 Jun 2015 22:32:19 +0000 (15:32 -0700)]
s3tests: fix multipart test

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agofuzz: Write fuzzer rules for WebsiteConfiguration. 59/head
Robin H. Johnson [Sun, 14 Jun 2015 22:20:17 +0000 (15:20 -0700)]
fuzz: Write fuzzer rules for WebsiteConfiguration.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
10 years agotests must have unique names, otherwise they override existing tests. 58/head
Robin H. Johnson [Mon, 15 Jun 2015 04:31:30 +0000 (21:31 -0700)]
tests must have unique names, otherwise they override existing tests.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
10 years agoMerge pull request #56 from jmunhoz/bug-11753
Yehuda Sadeh [Thu, 28 May 2015 08:39:08 +0000 (01:39 -0700)]
Merge pull request #56 from jmunhoz/bug-11753

s3tests: Test copying foreign object in foreign bucket

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agos3tests: Test copying foreign object in foreign bucket 56/head
Javier M. Mellid [Wed, 27 May 2015 09:27:08 +0000 (11:27 +0200)]
s3tests: Test copying foreign object in foreign bucket

User should be able to copy non-owned objects inside non-owned buckets when
they have full permissions to both bucket and object.

Test for issue #11639

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
10 years agoMerge pull request #55 from ceph/wip-bootstrap-pkg-install
Yehuda Sadeh [Fri, 15 May 2015 17:36:34 +0000 (10:36 -0700)]
Merge pull request #55 from ceph/wip-bootstrap-pkg-install

bootstrap: apt/yum install the list of dependencies

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agobootstrap: apt/yum install the list of dependencies 55/head
Ken Dreyer [Fri, 15 May 2015 17:15:33 +0000 (11:15 -0600)]
bootstrap: apt/yum install the list of dependencies

If RPM or DEB packages are missing, don't print to STDERR and bail.
Instead, assume that the user has sudo rights, and attempt to install
the missing packages for the user automatically.

10 years agos3tests: more thorough multipart resend tests
Yehuda Sadeh [Thu, 14 May 2015 00:10:07 +0000 (17:10 -0700)]
s3tests: more thorough multipart resend tests

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoradosgw-admin: test resend of a multipart upload part
Yehuda Sadeh [Wed, 13 May 2015 00:06:11 +0000 (17:06 -0700)]
radosgw-admin: test resend of a multipart upload part

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoAdd multipart tests with invalid parts 53/head
Andrew Gaul [Sat, 2 May 2015 17:51:30 +0000 (10:51 -0700)]
Add multipart tests with invalid parts

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agoMerge pull request #52 from andrewgaul/nuke-empty-bucket
Yehuda Sadeh [Fri, 1 May 2015 20:14:39 +0000 (13:14 -0700)]
Merge pull request #52 from andrewgaul/nuke-empty-bucket

Handle empty bucket while nuking

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoHandle empty bucket while nuking 52/head
Andrew Gaul [Fri, 1 May 2015 20:09:51 +0000 (13:09 -0700)]
Handle empty bucket while nuking

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agoMerge pull request #51 from andrewgaul/nuke-bucket-without-versions
Yehuda Sadeh [Fri, 24 Apr 2015 21:50:49 +0000 (14:50 -0700)]
Merge pull request #51 from andrewgaul/nuke-bucket-without-versions

Fall back when nuking buckets

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoFall back when nuking buckets 51/head
Andrew Gaul [Fri, 24 Apr 2015 21:35:35 +0000 (14:35 -0700)]
Fall back when nuking buckets

Some S3 implementations do not support object versioning - fall back
to listing without versions.

Signed-off-by: Andrew Gaul <andrew@gaul.org>
10 years agos3tests: cleanup, set bucket acls if permission denied
Yehuda Sadeh [Fri, 24 Apr 2015 20:49:59 +0000 (13:49 -0700)]
s3tests: cleanup, set bucket acls if permission denied

retry bucket removal after setting the bucket permissions if we're
getting pemission denied. This will make sure the bucket gets removed.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #50 from andrewgaul/test-object-acl-canned-during-create
Yehuda Sadeh [Fri, 24 Apr 2015 16:16:45 +0000 (09:16 -0700)]
Merge pull request #50 from andrewgaul/test-object-acl-canned-during-create

Add test_object_acl_canned_during_create

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoAdd test_object_acl_canned_during_create 50/head
Andrew Gaul [Thu, 23 Apr 2015 23:28:11 +0000 (16:28 -0700)]
Add test_object_acl_canned_during_create

This mirrors test_bucket_acl_canned_during_create.

Signed-off-by: Andrew Gaul <andrew@gaul.org>