Commit graph

530 commits

Author SHA1 Message Date
Yehuda Sadeh
b9aab7cb1c more multipart copy tests
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-10-20 11:46:40 -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
b62fad7b0b Merge pull request #126 from ceph/rgw-lifecycle-testing
S3 lifecycle tests

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-09-29 10:47:07 -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
Yehuda Sadeh
64020ce81c Merge pull request #119 from ceph/empty_object_range
Add range request to an empty object
2016-08-12 10:24:21 -07: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
Yehuda Sadeh
56aa87d664 Merge pull request #116 from andrewgaul/rfc2616
Annotate tests which create non-RFC2616 headers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-06-07 02:47:21 +03: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
Yehuda Sadeh
456a534136 Merge pull request #115 from jmunhoz/fix-20160602
rgw: aws4: add test cases with missing signed headers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-06-03 09:53:56 +03: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
bdb385a28d Merge pull request #112 from ceph/wip-add-libxslt
add missing libxml2-dev and libxslt-dev dependencies

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-19 08:25:29 -07:00
Orit Wasserman
2f07f93007 add zlib-devel
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-05-19 17:12:46 +02:00
Orit Wasserman
18e4e528fd add missing libxml2-dev and libxslt-dev dependencies
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-05-19 14:22:03 +02: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
66f320a8d5 Merge pull request #111 from ceph/wip-ifmodified
s3tests: modify test_get_object_ifmodifiedsince_failed

Reviewed-by: Andrew Gaul <andrew@gaul.org>
2016-05-17 15:55:07 -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