Zhang Shaowen
fba689ac1e
add lifecycle validate test cases.
...
Fixes: http://tracker.ceph.com/issues/18541
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
2017-01-17 10:50:28 +08:00
Orit Wasserman
e856cbcee6
test multi-delete with object with ending underscore
...
Fixes: http://tracker.ceph.com/issues/18023
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-12-01 11:03:52 +01:00
Yehuda Sadeh
f2d087ed8a
rgw: adjust tests annotations
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-02 11:52:16 -07:00
Yehuda Sadeh
39db936348
Merge pull request #133 from ceph/wip-more-multipart-copy
...
more multipart copy tests
2016-11-02 11:45:06 -07:00
Yehuda Sadeh
26b505a12d
Merge pull request #132 from ceph/wip-17635
...
add a test for post object with empty conditions
2016-11-02 11:44:54 -07:00
Yehuda Sadeh
3641923f23
Merge pull request #130 from ceph/wip-aws2-aws4
...
rgw: skip aws2 requests when testing aws4
2016-11-02 11:44:37 -07:00
Yehuda Sadeh
f135d2fc1a
Merge pull request #129 from ceph/wip-16930
...
Wip 16930
2016-11-02 11:44:28 -07:00
Yehuda Sadeh
7139293aa0
Merge pull request #117 from tianshan/fix-rgw-roundtrip
...
fix rgw_roundtrip test fail
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-02 11:43:55 -07:00
Yehuda Sadeh
9a2e9bbd02
fix broken test
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-11-01 16:09:09 -07:00
Yehuda Sadeh
634d96f5c6
add a test for post object with empty conditions
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-10-20 12:21:46 -07:00
Yehuda Sadeh
b9aab7cb1c
more multipart copy tests
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-10-20 11:46:40 -07:00
Orit Wasserman
14da8e5b9d
test set_acl for keys with special characters
...
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-10-20 12:11:08 +02:00
Yehuda Sadeh
e6a6ec1cd9
test concurrent bucket set acl
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-10-04 15:37:43 -07:00
Yehuda Sadeh
5bc2f21564
Merge pull request #124 from tipabu/complete-multipart
...
Complete multi-part upload during dry-run
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-10-04 09:56:17 -07:00
Tim Burke
316a814b59
Complete multi-part upload during dry-run
...
While it may be valuable to verify that deleting a non-existent key
is OK, that doesn't seem to be the point of this test.
Signed-off-by: Tim Burke <tim.burke@gmail.com>
2016-09-30 17:00:57 -07:00
Yehuda Sadeh
05f11d4c32
Merge pull request #127 from ceph/fix_copy_obj_versioned_bucket
...
Fix copy obj versioned bucket
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-09-29 19:05:54 -07:00
Yehuda Sadeh
7d716a656d
rgw: skip aws2 requests when testing aws4
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-09-29 13:34:22 -07:00
Daniel Gryniewicz
e33a2f6fb9
S3 lifecycle tests
...
Test S3 lifecycle expiration. This requires the test harnass code in
RGW to make sure it doesn't take days so expire anything.
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2016-09-26 13:34:44 -04:00
Orit Wasserman
c62e264e89
test copy object on a multipart object
...
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-09-16 11:41:52 +02:00
Orit Wasserman
7a437905f2
fix test_object_copy_versioned_bucket
...
Do not use _create_key_with_random_content as it creates a new bucket.
Check objects content and size
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-09-14 14:23:49 +02:00
Yehuda Sadeh
6ca6f7c70e
Merge pull request #125 from ceph/versioned_copy_obj
...
Add testing for copy object to/from a versioned bucket
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-09-14 03:45:10 -07:00
Orit Wasserman
c961cdd10e
Add testing for copy object to/from a versioned bucket
...
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-09-14 12:31:07 +02:00
Yehuda Sadeh
4e530d396f
Merge pull request #123 from ceph/get_special_key
...
test get object with special key name
Reviewed-by: Andrew Gaul <andrew@gaul.org>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-09-14 03:00:33 -07:00
Orit Wasserman
29caf70ccd
test get object with special key name
...
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-09-06 10:00:56 +02:00
Orit Wasserman
21ade20826
Add range request to an empty object
...
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-07-22 14:49:21 +02:00
Tianshan Qu
6dcec183a3
fix rgw_roundtrip test fail
...
boto no longer rewind itself in set_contents_from_file, which will trigger the assert in
realistic/RandomContentFile::seek
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
2016-07-04 19:13:14 +08:00
Andrew Gaul
e29168f8b9
Annotate tests which create non-RFC2616 headers
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2016-06-06 16:30:26 -07:00
Javier M. Mellid
520eaa0b62
rgw: aws4: fix test_object_create_missing_signed_header_aws4
...
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-06-02 21:32:00 +00:00
Javier M. Mellid
ff9fb2d8ea
rgw: aws4: fix test_object_create_missing_signed_custom_header_aws4
...
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-06-02 21:08:41 +00:00
Yehuda Sadeh
45a4b336cc
Merge pull request #110 from ceph/wip-15886
...
rgw: add a new multipart test
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-05-20 16:24:02 -07:00
Yehuda Sadeh
6154f37036
Merge pull request #109 from wido/origin-wildcard-test
...
Add test to verify if Asterisk Origin is returned when * is set as a …
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-17 16:19:33 -07:00
Yehuda Sadeh
14d58a3bda
Merge remote-tracking branch 'dreamhost/wip-static-website'
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Conflicts:
s3tests/functional/test_s3.py
2016-05-17 16:00:12 -07:00
Yehuda Sadeh
99f237e552
s3tests: modify test_get_object_ifmodifiedsince_failed
...
Use key's last_modified instead of local time
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-17 15:46:27 -07:00
Yehuda Sadeh
3e3eb4908d
Merge pull request #74 from andrewgaul/conditional-get
...
Add tests for conditional gets
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-17 10:12:57 -07:00
Yehuda Sadeh
e71c84f328
rgw: add a new multipart test
...
test for the following ceph issue:
http://tracker.ceph.com/issues/15886
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-16 14:44:54 -07:00
Robin H. Johnson
811e7f6d7e
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>
2016-04-21 15:10:15 -07:00
Robin H. Johnson
8da96c83af
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>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
94fa405270
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>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
f028e1e926
website: include Forbidden in 403 test per 802c8a3ee9 (commitcomment-15776266)
.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
6ce34d3c6a
website: RGW does not have custom 404 message descriptions per s3 error codes yet.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
17f98b00ba
website: Use better test annotation for routingrules tests.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
9efbe4ef81
website: Support both NoSuchWebsiteConfiguration and NoSuchKey for fetching the website config subresource.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
e917e5e41a
s3website: Allow tests to be skipped if website support disabled in RGW.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
eb8acbaf92
Fix whitespace.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
44e51960c6
Annotate many tests that fail on AWS (tested on EU region)
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
88b6328003
website: Improve XML handling and x-amz-website-redirect-location tests
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
e0655234b1
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>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
819eecba5c
Work on tests.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
5d158567fd
Update redirect checks for x-amz-website-redirect-location
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
c1f7ad54ce
Use new XML checks.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
4d8c6bdb69
Add XML improvements.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
672e0ad0e4
Improve test attribute.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
ddfcf59e53
Add tests for x-amz-website-redirect-location, code still pending.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
25e9980af8
website: refactor and add redirect testcases, so far 3 failures out of 27 new tests.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
c053a96ef2
Fixup path stuff for redirect test.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
5c681dacff
Prepare for better testcases, with fixture functions.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
a9fd9988e1
website: Clean up imports.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
4c07c555ee
website: Start redirect tests.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
ea69111773
website: improve test structure.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
cb1e14ae16
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>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
a48a8983b7
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>
2016-04-20 16:08:57 -07:00
Robin H. Johnson
3cf86161d0
Use py3 print.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-04-20 16:08:57 -07:00
Wido den Hollander
dd2bfc56c6
Add test to verify if Asterisk Origin is returned when * is set as a Allowed Origin.
...
For example:
The request sends 'Origin: example.origin' while * is allowed as
a origin by the CORS rule.
The Server should then respond with * if no Authorization was send.
Signed-off-by: Wido den Hollander <wido@widodh.nl>
2016-04-19 17:12:12 +02:00
Yuan Zhou
22edd83083
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>
2016-04-11 16:01:34 +08:00
Javier M. Mellid
e7241f2ff1
Add fails_on_rgw on multipart copy part tests
...
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-03-28 09:19:27 +00:00
Yehuda Sadeh
278113fbc5
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>
2016-03-22 18:40:39 -07:00
Javier M. Mellid
11bb947a0b
rgw: add X-Amz-Expires test cases
...
Test X-Amz-Expires under AWS4 auth.
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-01-27 02:19:20 +00:00
Yehuda Sadeh
a13f6441ae
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>
2015-12-18 12:25:59 -08:00
Andrew Gaul
c788b7d0cd
Test begin to overwrite file with MPU then abort
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-12-18 12:16:59 -08:00
Robin H. Johnson
d98d7956c1
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>
2015-12-18 11:50:11 -08:00
Yehuda Sadeh
a85b279bdc
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>
2015-12-18 09:57:19 -08:00
Yehuda Sadeh
958a718558
Merge pull request #87 from dreamhost/wip-cleanup-buckets
...
s3tests: do not exit cleanup after first bucket!
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-18 09:56:36 -08:00
Yehuda Sadeh
b00d8b3653
Merge pull request #85 from dreamhost/wip-test-issue11563
...
Add test for COPY Content-Type header
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-18 09:56:02 -08:00
Yehuda Sadeh
f33c3e2432
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>
2015-12-18 09:54:46 -08:00
Yehuda Sadeh
44f2ce8281
Merge pull request #77 from andrewgaul/special-key-names
...
Consolidate test_object_create_special_characters
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-18 09:52:58 -08:00
Yehuda Sadeh
86c311b0d1
Merge pull request #73 from andrewgaul/ends-with-delimiter
...
Test listing a blob which ends with delimiter
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-18 09:51:03 -08:00
Yehuda Sadeh
2c9501f547
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>
2015-12-18 09:50:20 -08:00
Yehuda Sadeh
2851e0c214
Merge pull request #30 from andrewgaul/bucket-create-exists
...
Handle idempotent and BucketAlreadyOwnedByYou
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-18 09:49:10 -08:00
Javier M. Mellid
914b0f36c1
rgw: add AWS4 auth testing support
...
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2015-12-18 00:22:11 +01:00
Andrew Gaul
7ac3a4008a
Add test for HEAD of a zero-byte object
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-12-15 00:16:06 -08:00
Robin H. Johnson
de65c582b7
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 c41ebab9cf
,
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
2015-12-01 17:28:23 -08:00
Javier M. Mellid
84067cb17c
s3tests: Check content is correct on copy multipart
...
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2015-11-25 15:50:18 +01:00
Robin H. Johnson
703f63e060
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>
2015-11-12 22:09:05 -08:00
Yehuda Sadeh
017354ae07
Merge pull request #76 from jmunhoz/test-requestid-on-error
...
Test RequestId on error
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-10-29 08:38:31 -07:00
Javier M. Mellid
6ca9492797
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>
2015-10-29 00:12:51 +01:00
Javier M. Mellid
63048b7bdf
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>
2015-10-28 23:55:45 +01:00
Yehuda Sadeh
001972a51c
Merge pull request #75 from jmunhoz/test-multipart-cp
...
Test multipart copy part feature
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-10-27 08:19:30 -07:00
Andrew Gaul
019dd9501a
Anonymously list private and public-read buckets
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-10-15 21:49:43 -07:00
Yehuda Sadeh
21cf4f4c87
check if setting acls modifies etag in bucket listing
...
This checks for ceph issue #12955
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-09-29 08:15:42 -07:00
Andrew Gaul
168ab9f473
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>
2015-09-11 10:52:43 -07:00
Yehuda Sadeh
4900d6af3a
rgw: test versioned objects with special names
...
E.g., objects that start with undescore
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-09-10 13:18:28 -07:00
Javier M. Mellid
88ccf95fc5
s3tests: Add test_multipart_copy_multiple_sizes
...
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2015-09-02 18:57:25 +02:00
Javier M. Mellid
126da37dfd
s3tests: Add test_multipart_copy_small
...
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2015-09-02 18:57:25 +02:00
Andrew Gaul
f642492ee9
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>
2015-08-13 11:12:09 -07:00
Yehuda Sadeh
88fe0d05f4
Merge pull request #53 from andrewgaul/mpu-invalid-parts
...
Add multipart tests with invalid parts
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-08-13 10:28:45 -07:00
Yehuda Sadeh
a7f483f3cd
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>
2015-08-13 10:27:14 -07:00
Andrew Gaul
d9768942ec
Add tests for conditional gets
...
Fixes #72 .
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-08-12 20:43:50 -07:00
Andrew Gaul
553007eb4a
Add tests for Cache-Control and Expires headers
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-06-30 16:39:13 -07:00
Yehuda Sadeh
3fea65c3b4
s3tests: fix for python 2.6
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-06-30 11:26:35 -07:00
Andrew Gaul
3ed20fd910
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>
2015-06-30 10:09:29 -07:00
Yehuda Sadeh
5407628c3a
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>
2015-06-17 13:20:54 -07:00
Yehuda Sadeh
226f5eb507
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>
2015-06-17 13:31:30 -07:00
Yehuda Sadeh
f01ec62a67
Merge pull request #61 from andrewgaul/range-get-content-range
...
Test Content-Range header in range requests
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-06-17 13:30:32 -07:00
Andrew Gaul
6110a41bcd
Test range get with invalid range
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-06-17 09:18:39 -07:00
Andrew Gaul
f6329714cc
Test Content-Range header in range requests
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-06-17 08:26:46 -07:00
Yehuda Sadeh
6e70b4b511
s3tests: fix multipart test
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-06-16 15:32:19 -07:00
Robin H. Johnson
c5ba8c4e0f
tests must have unique names, otherwise they override existing tests.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2015-06-14 22:10:35 -07:00
Javier M. Mellid
cece4dd137
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>
2015-05-27 11:31:43 +02:00
Yehuda Sadeh
725bb83e5e
s3tests: more thorough multipart resend tests
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-13 17:11:51 -07:00
Yehuda Sadeh
8151c6901e
radosgw-admin: test resend of a multipart upload part
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-12 17:06:38 -07:00
Andrew Gaul
6706d5d8a9
Add multipart tests with invalid parts
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-05-02 11:09:31 -07:00
Andrew Gaul
31efb46b28
Handle empty bucket while nuking
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-05-01 13:10:58 -07:00
Andrew Gaul
0dfcbc7da6
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>
2015-04-24 14:47:28 -07:00
Yehuda Sadeh
c41ebab9cf
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>
2015-04-24 13:51:21 -07:00
Andrew Gaul
b209f9992f
Add test_object_acl_canned_during_create
...
This mirrors test_bucket_acl_canned_during_create.
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-04-23 16:29:54 -07:00
Andrew Gaul
2f357f8ba8
Copy tests for non-existent buckets and keys
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-04-18 04:12:43 -07:00
Andrew Gaul
29581e278b
Replace and retain Content-Type in copy tests
...
Also set user metadata during put instead of issuing an additional
copy.
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-04-05 17:31:07 -07:00
Yehuda Sadeh
e97a13e8e8
Merge pull request #45 from andrewgaul/head-operation-tests
...
Do not rely on Ceph extensions in head bucket
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-03-17 09:35:04 -07:00
Yehuda Sadeh
26e8378f6c
Merge pull request #46 from andrewgaul/container-create-acl
...
Test setting container ACLs during create bucket
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-03-17 09:33:10 -07:00
Andrew Gaul
1fed8aebd3
Test setting container ACLs during create bucket
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-03-15 18:06:12 -07:00
Andrew Gaul
7b4373bb72
Do not rely on Ceph extensions in head bucket
...
This commit allows test_bucket_head test_bucket_head,
test_bucket_head_extended, test_multipart_upload, and
test_abort_multipart_upload to succeed against AWS-S3. Also use
public buckets for head tests since they do not require private
buckets.
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2015-03-10 11:19:24 -07:00
Andrew Schoen
3d3ea9bcfe
Add fails_on_mod_proxy_fcgi to functional.test_s3.test_100_continue
...
Backport: hammer, firefly
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2015-03-10 12:28:13 -05:00
Andrew Gaul
4d7638de5b
Copy tests for replacing and retaining metadata
2015-03-02 14:13:30 -08:00
Yehuda Sadeh
81ee959c57
s3tests: add tests of acl settings by alt user
...
verify ownership
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 16:49:44 -08:00
Yehuda Sadeh
9d36507fdd
s3tests: add missing imports
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 11:54:44 -08:00
Yehuda Sadeh
1daa9ec8ec
Merge pull request #37 from andrewgaul/empty-content-length
...
Do not check error_code with empty content length
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:38:21 -08:00
Yehuda Sadeh
629610d788
Merge pull request #36 from andrewgaul/starts-with-nonalpha
...
Use unique name in starts with nonalpha test
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:37:42 -08:00
Yehuda Sadeh
d2de82d020
Merge pull request #34 from andrewgaul/abort-multipart-upload-not-found
...
Add test for aborting a bogus multi-part upload
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:36:33 -08:00
Yehuda Sadeh
c9e76672df
Merge pull request #33 from andrewgaul/multi-delete
...
Ensure multi-delete removes keys
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:35:45 -08:00
Yehuda Sadeh
6582a28395
Merge pull request #32 from andrewgaul/xml-special-characters
...
Add test for keys with XML special characters
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:35:08 -08:00
Yehuda Sadeh
eac714c9b7
Merge pull request #31 from andrewgaul/get-location
...
Add test for querying location
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:34:05 -08:00
Yehuda Sadeh
284938942e
Merge pull request #29 from andrewgaul/multipart-upload-empty-small
...
Test empty and small multi-part uploads
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:30:51 -08:00
Yehuda Sadeh
923bf8845c
Merge pull request #18 from andrewgaul/bad-digest
...
Test to find mismatched MD5
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:26:44 -08:00
Yehuda Sadeh
681063cc87
Merge pull request #16 from andrewgaul/put-object-correct-etag
...
Test that put object returns correct ETag
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:25:02 -08:00
Yehuda Sadeh
56b7d32fe1
Merge pull request #15 from andrewgaul/half-open-range-requests
...
Test half-open range requests
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:24:12 -08:00
Yehuda Sadeh
de985d8e14
Merge pull request #12 from andrewgaul/short-write-disable-retries
...
Disable retries to test short writes
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:17:48 -08:00
Yehuda Sadeh
d0e4dd09b0
Merge pull request #11 from andrewgaul/long-bucket-name-tests
...
Call get_new_bucket_name in long bucket name tests
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:16:20 -08:00
Yehuda Sadeh
a9dab59337
s3tests: fix test_bucket_create_bad_contentlength_empty
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-27 10:23:09 -08:00
Yehuda Sadeh
a7909ddd47
s3tests: test POST with bad access key
...
Tests issue #10698
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-02-05 09:42:45 -08:00
Yehuda Sadeh
f33a86b388
Merge branch 'wip-bi-sharding-3' into wip-rgw-versioning-3
...
Conflicts:
s3tests/functional/test_s3.py
2015-01-22 15:24:07 -08:00
Yehuda Sadeh
76e8bed4bd
s3tests: send raw http requests to test redirects
...
Since we fixed the rgw redirect code, it turns out that boto actually
follows on them. We just want to check if redirect is sent.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-22 15:21:46 -08:00
Yehuda Sadeh
4d0af2149f
Merge pull request #27 from xylv/wip-test-issue-10311
...
s3tests: add regression test for bug #10311 - rgw: Object is deleted automatically if conditional PUT returns 412
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-01-21 14:49:47 -08:00
Yehuda Sadeh
7a0932fe02
s3tests: test list bucket versions
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:08:29 -08:00
Yehuda Sadeh
460e3f1f1e
s3tests: concurrent object versioning tests
...
test concurrent creation and removal
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:08:29 -08:00
Yehuda Sadeh
5be9694863
s3tests: versioned get_acl, put_acl
...
modify a specific version acl, check this specific version, check it
didn't affect object head acls.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:07:54 -08:00
Yehuda Sadeh
e109c5c7b7
s3test: add a new multi obj delete test
...
Validate creation of delete marker.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:07:54 -08:00
Yehuda Sadeh
53d5857e83
s3test: add versioned multi delete
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:07:54 -08:00
Yehuda Sadeh
ec6ea92443
test: fixes
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:07:54 -08:00
Yehuda Sadeh
67bb05c87e
s3test: test copy version
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:07:54 -08:00
Yehuda Sadeh
b4d406bcf7
test_s3: add versioned multipart upload test
...
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2015-01-19 15:07:54 -08:00