]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
8 years agoAdd test for bucket list with prefix with underscore wip-underscore-prefix 174/head
Orit Wasserman [Thu, 6 Jul 2017 12:28:50 +0000 (15:28 +0300)]
Add test for bucket list with prefix with underscore

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #166 from cbodley/wip-get-version
Yehuda Sadeh [Tue, 20 Jun 2017 17:47:49 +0000 (10:47 -0700)]
Merge pull request #166 from cbodley/wip-get-version

clear key.version_id now that GET requests return x-amz-version-id header

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoclear key.version_id now that GET requests return x-amz-version-id header wip-get-version 166/head
Casey Bodley [Tue, 13 Jun 2017 19:07:54 +0000 (15:07 -0400)]
clear key.version_id now that GET requests return x-amz-version-id header

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #157 from zhangsw/verionid-getobjectmeta
Yehuda Sadeh [Tue, 6 Jun 2017 21:25:10 +0000 (14:25 -0700)]
Merge pull request #157 from zhangsw/verionid-getobjectmeta

Add test case for getting version id when getting object and object's metadata

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #158 from zhangsw/lifecycle-noncurrent
Yehuda Sadeh [Thu, 4 May 2017 16:37:12 +0000 (09:37 -0700)]
Merge pull request #158 from zhangsw/lifecycle-noncurrent

Test case for non-current expiration,multipart upload expiration and delete marker expiration

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
8 years agoTest case for non-current expiration, multipart upload expiration and 158/head
Zhang Shaowen [Wed, 12 Apr 2017 07:09:44 +0000 (15:09 +0800)]
Test case for non-current expiration, multipart upload expiration and
delete marker expiration.

Fixes: http://tracker.ceph.com/issues/19519
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
8 years agoAdd test case for getting version id when getting object and object's metadata 157/head
Zhang Shaowen [Mon, 10 Apr 2017 09:58:26 +0000 (17:58 +0800)]
Add test case for getting version id when getting object and object's metadata

Fixes: http://tracker.ceph.com/issues/19565
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
8 years agoMerge pull request #154 from ceph/wip-pr-118
Yehuda Sadeh [Tue, 28 Mar 2017 16:08:12 +0000 (09:08 -0700)]
Merge pull request #154 from ceph/wip-pr-118

functional tests for server side encryption

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agocrypto: add key headers to valid HEAD requests 154/head
Casey Bodley [Tue, 28 Feb 2017 21:58:17 +0000 (16:58 -0500)]
crypto: add key headers to valid HEAD requests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoAdded tests for HEAD method for encrypted objects.
Adam Kupczyk [Wed, 22 Feb 2017 10:26:28 +0000 (11:26 +0100)]
Added tests for HEAD method for encrypted objects.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoAdded micro instuction how to configure tests for KMS (barbican) integration
Adam Kupczyk [Thu, 15 Dec 2016 10:27:49 +0000 (11:27 +0100)]
Added micro instuction how to configure tests for KMS (barbican) integration

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoModified aws kms tests to use config variable kms_keyid
Adam Kupczyk [Thu, 15 Dec 2016 10:09:36 +0000 (11:09 +0100)]
Modified aws kms tests to use config variable kms_keyid

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoA bit more test for kms
Adam Kupczyk [Fri, 16 Sep 2016 15:37:15 +0000 (17:37 +0200)]
A bit more test for kms

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoAdditional tests for server side encryption, S3 SSE-KMS mode.
Adam Kupczyk [Mon, 11 Jul 2016 13:43:52 +0000 (15:43 +0200)]
Additional tests for server side encryption, S3 SSE-KMS mode.
All tests belong to group 'encryption'.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoAdditional tests for server side encryption, S3 SSE-C mode.
Adam Kupczyk [Thu, 2 Jun 2016 16:13:56 +0000 (18:13 +0200)]
Additional tests for server side encryption, S3 SSE-C mode.
All tests belong to group 'encryption'.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoMerge pull request #136 from jkorvin/fix-ifmodifiedsince-failed
Yehuda Sadeh [Tue, 7 Mar 2017 21:47:44 +0000 (13:47 -0800)]
Merge pull request #136 from jkorvin/fix-ifmodifiedsince-failed

Fix 'If-Modified-Since' format string

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #135 from jkorvin/fix
Yehuda Sadeh [Tue, 7 Mar 2017 21:46:16 +0000 (13:46 -0800)]
Merge pull request #135 from jkorvin/fix

Fix If-Match test

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoFix 'If-Modified-Since' format string 136/head
Evgenii Gorinov [Wed, 9 Nov 2016 16:19:13 +0000 (19:19 +0300)]
Fix 'If-Modified-Since' format string

According to https://tools.ietf.org/html/rfc7232
header 'If-Modified-Since' should be a correct HTTP-date.
For example: `Tue, 15 Nov 1994 12:45:26 GMT`;
not `1994-11-15T12:45:26.000Z`.

Signed-off-by: Evgenii Gorinov <korvin.lucky@gmail.com>
8 years agoFix If-Match test 135/head
Evgenii Gorinov [Mon, 31 Oct 2016 15:19:06 +0000 (18:19 +0300)]
Fix If-Match test

According to https://tools.ietf.org/html/rfc7232, If-Match field should looks like QUOTES ETag QUOTES.

Signed-off-by: Evgenii Gorinov <korvin.lucky@gmail.com>
8 years agoMerge pull request #152 from zhangsw/set-current-acl
Yehuda Sadeh [Tue, 7 Mar 2017 19:48:39 +0000 (11:48 -0800)]
Merge pull request #152 from zhangsw/set-current-acl

Add a test case for setting acl on object with no version id specified.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #138 from zhangsw/lifecycle-validate
Yehuda Sadeh [Tue, 7 Mar 2017 19:05:21 +0000 (11:05 -0800)]
Merge pull request #138 from zhangsw/lifecycle-validate

add lifecycle validate test cases.

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
8 years agoMerge pull request #128 from ceph/wip-multipart-copy
Yehuda Sadeh [Mon, 27 Feb 2017 18:25:04 +0000 (10:25 -0800)]
Merge pull request #128 from ceph/wip-multipart-copy

Wip multipart copy

8 years agoAdd a test case for setting acl on object with no version id specified. 152/head
Zhang Shaowen [Tue, 14 Feb 2017 03:20:56 +0000 (11:20 +0800)]
Add a test case for setting acl on object with no version id specified.

Fixes: http://tracker.ceph.com/issues/18923
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
8 years agoMerge pull request #150 from ceph/wip-remove-pip
Ken Dreyer [Tue, 7 Feb 2017 19:05:42 +0000 (12:05 -0700)]
Merge pull request #150 from ceph/wip-remove-pip

remove python2 pip

9 years agoremove python2 pip 150/head
vasukulkarni [Fri, 3 Feb 2017 00:33:42 +0000 (16:33 -0800)]
remove python2 pip

python2-pip doesn't exist in rhel and python-virtualenv ships pip in its package.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agoMerge pull request #145 from mdw-at-linuxbox/master-setupfix
Matt Benjamin [Thu, 26 Jan 2017 16:07:04 +0000 (11:07 -0500)]
Merge pull request #145 from mdw-at-linuxbox/master-setupfix

Use non-broken version of setuptools, and fix bootstrap to be more portable

9 years agoUse non-broken version of setuptools, and fix bootstrap to be more portable. 145/head
Marcus Watts [Thu, 26 Jan 2017 08:26:55 +0000 (03:26 -0500)]
Use non-broken version of setuptools, and fix bootstrap to be more portable.

Most recent version of setuptools breaks when asked to load requests 0.14.0.
symptom, complains about not being able to import filterfalse thus:
        from six.moves import map, filter, filterfalse
this comes from setuptools, and older versions of setuptools don't have
this problem.

Various versions of centos7 and fedora have interesting names for packages,
centos7: python-pip is python2-pip
fedora24: python-virtualenv is python2-virtualenv
This is somewhat masked by using sudo yum: if the actual package
is installed, rpm knows that the capability is there and does nothing.
But, if the package isn't there, or you haven't chosen to set up
sudo to work that way, this does not work.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
9 years agoMerge pull request #139 from linuxbox2/wip-setuptools
Yehuda Sadeh [Wed, 25 Jan 2017 21:04:03 +0000 (13:04 -0800)]
Merge pull request #139 from linuxbox2/wip-setuptools

bootstrap:  force new setuptools

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agobootstrap: force new setuptools 139/head
Matt Benjamin [Wed, 25 Jan 2017 16:04:51 +0000 (11:04 -0500)]
bootstrap:  force new setuptools

Deal setuptools upgrade problem discussed here:
 https://github.com/pypa/setuptools/issues/940

Now follows the same formula as upstream teuthology.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoadd lifecycle validate test cases. 138/head
Zhang Shaowen [Mon, 16 Jan 2017 08:44:40 +0000 (16:44 +0800)]
add lifecycle validate test cases.

Fixes: http://tracker.ceph.com/issues/18541
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
9 years agoMerge pull request #137 from ceph/wip-delete-multi-underscore
Yehuda Sadeh [Mon, 9 Jan 2017 23:42:09 +0000 (15:42 -0800)]
Merge pull request #137 from ceph/wip-delete-multi-underscore

test multi-delete with object with ending underscore

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest multi-delete with object with ending underscore wip-delete-multi-underscore 137/head
Orit Wasserman [Tue, 29 Nov 2016 10:57:03 +0000 (11:57 +0100)]
test multi-delete with object with ending underscore

Fixes: http://tracker.ceph.com/issues/18023
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: adjust tests annotations
Yehuda Sadeh [Fri, 30 Sep 2016 22:12:11 +0000 (15:12 -0700)]
rgw: adjust tests annotations

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #133 from ceph/wip-more-multipart-copy
Yehuda Sadeh [Wed, 2 Nov 2016 18:45:06 +0000 (11:45 -0700)]
Merge pull request #133 from ceph/wip-more-multipart-copy

more multipart copy tests

9 years agoMerge pull request #132 from ceph/wip-17635
Yehuda Sadeh [Wed, 2 Nov 2016 18:44:54 +0000 (11:44 -0700)]
Merge pull request #132 from ceph/wip-17635

add a test for post object with empty conditions

9 years agoMerge pull request #130 from ceph/wip-aws2-aws4
Yehuda Sadeh [Wed, 2 Nov 2016 18:44:37 +0000 (11:44 -0700)]
Merge pull request #130 from ceph/wip-aws2-aws4

rgw: skip aws2 requests when testing aws4

9 years agoMerge pull request #129 from ceph/wip-16930
Yehuda Sadeh [Wed, 2 Nov 2016 18:44:28 +0000 (11:44 -0700)]
Merge pull request #129 from ceph/wip-16930

Wip 16930

9 years agoMerge pull request #117 from tianshan/fix-rgw-roundtrip
Yehuda Sadeh [Wed, 2 Nov 2016 18:43:55 +0000 (11:43 -0700)]
Merge pull request #117 from tianshan/fix-rgw-roundtrip

fix rgw_roundtrip test fail

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #100 from kalantal/patch-1
Yehuda Sadeh [Wed, 2 Nov 2016 18:42:48 +0000 (11:42 -0700)]
Merge pull request #100 from kalantal/patch-1

Update README.rst

9 years agofix broken test
Yehuda Sadeh [Tue, 1 Nov 2016 23:08:00 +0000 (16:08 -0700)]
fix broken test

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #131 from ceph/wip-put-acl-underscore
Yehuda Sadeh [Thu, 20 Oct 2016 19:33:52 +0000 (12:33 -0700)]
Merge pull request #131 from ceph/wip-put-acl-underscore

test set_acl for keys with special characters

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoadd a test for post object with empty conditions wip-17635 132/head
Yehuda Sadeh [Thu, 20 Oct 2016 19:21:46 +0000 (12:21 -0700)]
add a test for post object with empty conditions

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agomore multipart copy tests wip-more-multipart-copy 133/head
Yehuda Sadeh [Fri, 30 Sep 2016 01:17:52 +0000 (18:17 -0700)]
more multipart copy tests

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest set_acl for keys with special characters wip-put-acl-underscore 131/head
Orit Wasserman [Thu, 20 Oct 2016 10:11:08 +0000 (12:11 +0200)]
test set_acl for keys with special characters

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agotest concurrent bucket set acl wip-16930 129/head
Yehuda Sadeh [Fri, 30 Sep 2016 23:08:17 +0000 (16:08 -0700)]
test concurrent bucket set acl

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #124 from tipabu/complete-multipart
Yehuda Sadeh [Tue, 4 Oct 2016 16:56:17 +0000 (09:56 -0700)]
Merge pull request #124 from tipabu/complete-multipart

Complete multi-part upload during dry-run

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoComplete multi-part upload during dry-run 124/head
Tim Burke [Fri, 9 Sep 2016 00:54:18 +0000 (17:54 -0700)]
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>
9 years agorgw: adjust tests annotations wip-multipart-copy 128/head
Yehuda Sadeh [Fri, 30 Sep 2016 22:12:11 +0000 (15:12 -0700)]
rgw: adjust tests annotations

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #127 from ceph/fix_copy_obj_versioned_bucket
Yehuda Sadeh [Fri, 30 Sep 2016 02:05:54 +0000 (19:05 -0700)]
Merge pull request #127 from ceph/fix_copy_obj_versioned_bucket

Fix copy obj versioned bucket

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agomore multipart copy tests
Yehuda Sadeh [Fri, 30 Sep 2016 01:17:52 +0000 (18:17 -0700)]
more multipart copy tests

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: skip aws2 requests when testing aws4
Yehuda Sadeh [Thu, 19 May 2016 19:45:32 +0000 (12:45 -0700)]
rgw: skip aws2 requests when testing aws4

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: skip aws2 requests when testing aws4 wip-aws2-aws4 130/head
Yehuda Sadeh [Thu, 19 May 2016 19:45:32 +0000 (12:45 -0700)]
rgw: skip aws2 requests when testing aws4

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #126 from ceph/rgw-lifecycle-testing
Yehuda Sadeh [Thu, 29 Sep 2016 17:47:07 +0000 (10:47 -0700)]
Merge pull request #126 from ceph/rgw-lifecycle-testing

S3 lifecycle tests

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoS3 lifecycle tests rgw-lifecycle-testing 126/head
Daniel Gryniewicz [Fri, 5 Aug 2016 15:51:48 +0000 (11:51 -0400)]
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>
9 years agotest copy object on a multipart object fix_copy_obj_versioned_bucket 127/head
Orit Wasserman [Fri, 16 Sep 2016 08:30:17 +0000 (10:30 +0200)]
test copy object on a multipart object

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agofix test_object_copy_versioned_bucket
Orit Wasserman [Wed, 14 Sep 2016 12:23:49 +0000 (14:23 +0200)]
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>
9 years agoMerge pull request #125 from ceph/versioned_copy_obj
Yehuda Sadeh [Wed, 14 Sep 2016 10:45:10 +0000 (03:45 -0700)]
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>
9 years agoAdd testing for copy object to/from a versioned bucket 125/head
Orit Wasserman [Wed, 14 Sep 2016 08:23:29 +0000 (10:23 +0200)]
Add testing for copy object to/from a versioned bucket

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #123 from ceph/get_special_key
Yehuda Sadeh [Wed, 14 Sep 2016 10:00:33 +0000 (03:00 -0700)]
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>
9 years agotest get object with special key name 123/head
Orit Wasserman [Mon, 5 Sep 2016 07:53:27 +0000 (09:53 +0200)]
test get object with special key name

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #119 from ceph/empty_object_range
Yehuda Sadeh [Fri, 12 Aug 2016 17:24:21 +0000 (10:24 -0700)]
Merge pull request #119 from ceph/empty_object_range

Add range request to an empty object

9 years agoAdd range request to an empty object empty_object_range 119/head
Orit Wasserman [Fri, 22 Jul 2016 12:49:21 +0000 (14:49 +0200)]
Add range request to an empty object

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agofix rgw_roundtrip test fail 117/head
Tianshan Qu [Mon, 4 Jul 2016 11:02:59 +0000 (19:02 +0800)]
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>
9 years agoMerge pull request #116 from andrewgaul/rfc2616
Yehuda Sadeh [Mon, 6 Jun 2016 23:47:21 +0000 (02:47 +0300)]
Merge pull request #116 from andrewgaul/rfc2616

Annotate tests which create non-RFC2616 headers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoAnnotate tests which create non-RFC2616 headers 116/head
Andrew Gaul [Mon, 6 Jun 2016 23:19:27 +0000 (16:19 -0700)]
Annotate tests which create non-RFC2616 headers

Signed-off-by: Andrew Gaul <andrew@gaul.org>
9 years agoMerge pull request #115 from jmunhoz/fix-20160602
Yehuda Sadeh [Fri, 3 Jun 2016 06:53:56 +0000 (09:53 +0300)]
Merge pull request #115 from jmunhoz/fix-20160602

rgw: aws4: add test cases with missing signed headers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: aws4: fix test_object_create_missing_signed_header_aws4 115/head
Javier M. Mellid [Thu, 2 Jun 2016 20:57:48 +0000 (20:57 +0000)]
rgw: aws4: fix test_object_create_missing_signed_header_aws4

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years agorgw: aws4: fix test_object_create_missing_signed_custom_header_aws4
Javier M. Mellid [Thu, 2 Jun 2016 20:33:40 +0000 (20:33 +0000)]
rgw: aws4: fix test_object_create_missing_signed_custom_header_aws4

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years agoMerge pull request #110 from ceph/wip-15886
Yehuda Sadeh [Fri, 20 May 2016 23:24:02 +0000 (16:24 -0700)]
Merge pull request #110 from ceph/wip-15886

rgw: add a new multipart test

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #112 from ceph/wip-add-libxslt
Yehuda Sadeh [Thu, 19 May 2016 15:25:29 +0000 (08:25 -0700)]
Merge pull request #112 from ceph/wip-add-libxslt

add missing libxml2-dev and libxslt-dev dependencies

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoadd zlib-devel wip-add-libxslt 112/head
Orit Wasserman [Thu, 19 May 2016 15:12:46 +0000 (17:12 +0200)]
add zlib-devel

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoadd missing libxml2-dev and libxslt-dev dependencies
Orit Wasserman [Thu, 19 May 2016 12:22:03 +0000 (14:22 +0200)]
add missing libxml2-dev and libxslt-dev dependencies

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #109 from wido/origin-wildcard-test
Yehuda Sadeh [Tue, 17 May 2016 23:19:33 +0000 (16:19 -0700)]
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>
9 years agoMerge remote-tracking branch 'dreamhost/wip-static-website'
Yehuda Sadeh [Tue, 17 May 2016 23:00:12 +0000 (16:00 -0700)]
Merge remote-tracking branch 'dreamhost/wip-static-website'

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Conflicts:
s3tests/functional/test_s3.py

9 years agoMerge pull request #111 from ceph/wip-ifmodified
Yehuda Sadeh [Tue, 17 May 2016 22:49:44 +0000 (15:49 -0700)]
Merge pull request #111 from ceph/wip-ifmodified

s3tests: modify test_get_object_ifmodifiedsince_failed

Reviewed-by: Andrew Gaul <andrew@gaul.org>
9 years agos3tests: modify test_get_object_ifmodifiedsince_failed wip-ifmodified 111/head
Yehuda Sadeh [Tue, 17 May 2016 21:33:40 +0000 (14:33 -0700)]
s3tests: modify test_get_object_ifmodifiedsince_failed

Use key's last_modified instead of local time

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #74 from andrewgaul/conditional-get
Yehuda Sadeh [Tue, 17 May 2016 17:12:57 +0000 (10:12 -0700)]
Merge pull request #74 from andrewgaul/conditional-get

Add tests for conditional gets

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add a new multipart test wip-15886 110/head
Yehuda Sadeh [Mon, 16 May 2016 21:44:22 +0000 (14:44 -0700)]
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>
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>