s3-tests.git
4 years agoprint foo -> print(foo) ceph-master-py3 332/head 333/head
Sage Weil [Sat, 14 Dec 2019 15:19:20 +0000 (09:19 -0600)]
print foo -> print(foo)

Signed-off-by: Sage Weil <sage@redhat.com>
4 years agopython 3
Sage Weil [Sat, 14 Dec 2019 14:34:44 +0000 (08:34 -0600)]
python 3

Signed-off-by: Sage Weil <sage@redhat.com>
4 years agobootstrap: switch to bash
Yehuda Sadeh [Sat, 7 Dec 2019 09:23:03 +0000 (11:23 +0200)]
bootstrap: switch to bash

Use of declare that is bash specific was introduced in:
d44c923405e22ea8b6cc1ab4316be3cc07f29b5

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit e7fbcee0d5d418675ddbb2f21102508d6b36067a)

4 years agoMerge pull request #306 from hairesis/wip-sse-kms-tests-refactor
Ali Maredia [Thu, 3 Oct 2019 16:08:44 +0000 (12:08 -0400)]
Merge pull request #306 from hairesis/wip-sse-kms-tests-refactor

Passing sse-kms keys from configuration instead of hard coding in tests

4 years agosse-kms test keys parametrization 306/head 308/head
Andrea Baglioni [Mon, 23 Sep 2019 20:02:23 +0000 (21:02 +0100)]
sse-kms test keys parametrization

Signed-off-by: Andrea Baglioni <andrea.baglioni@workday.com>
4 years agosse-kms: adding missing kms test to parametrization
Andrea Baglioni [Tue, 24 Sep 2019 15:49:13 +0000 (16:49 +0100)]
sse-kms: adding missing kms test to parametrization

4 years agoboto2: tag more tests with fails_with_subdomain
Casey Bodley [Tue, 10 Sep 2019 19:14:49 +0000 (15:14 -0400)]
boto2: tag more tests with fails_with_subdomain

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agoadd test cases for object lock.
zhang Shaowen [Tue, 28 May 2019 12:10:59 +0000 (20:10 +0800)]
add test cases for object lock.

Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
4 years agostartafter or continuation token shouldn't be returned if they are not specified...
albIN7 [Tue, 6 Aug 2019 15:48:43 +0000 (21:18 +0530)]
startafter or continuation token shouldn't  be returned if they are not specified in the request

Signed-off-by: Albin Antony <aantony@redhat.com>
4 years agoadd test case for list with delimiter not skip special keys
Tianshan Qu [Fri, 26 Jul 2019 03:15:28 +0000 (11:15 +0800)]
add test case for list with delimiter not skip special keys

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
4 years agoMerge pull request #285 from soumyakoduri/bucket-name-tests
Ali Maredia [Fri, 16 Aug 2019 14:57:20 +0000 (10:57 -0400)]
Merge pull request #285 from soumyakoduri/bucket-name-tests

Fix create_bucket tests as per new bucket naming conventions

4 years agoMerge pull request #294 from linuxbox2/wip-lc-exphdr
Matt Benjamin [Wed, 24 Jul 2019 20:49:59 +0000 (16:49 -0400)]
Merge pull request #294 from linuxbox2/wip-lc-exphdr

lifecycle: expiration header checks do not require @lifecycle_expirat…

4 years agolc: remove date delta check from lc header checks 294/head
Matt Benjamin [Wed, 24 Jul 2019 18:05:43 +0000 (14:05 -0400)]
lc: remove date delta check from lc header checks

This was prone to false positives.  We still check:
1. the expiration header has valid form
2. the rule-id matches

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agolc: add rule to test disjoint object tag filters
Matt Benjamin [Fri, 19 Jul 2019 19:32:52 +0000 (15:32 -0400)]
lc: add rule to test disjoint object tag filters

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agolc: fix lifecycle expiration header tests
Matt Benjamin [Fri, 19 Jul 2019 15:36:18 +0000 (11:36 -0400)]
lc: fix lifecycle expiration header tests

Fixes various issues with existing HEAD check and helper methods.
Add an explicit test for GET.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agolifecycle: expiration header checks do not require @lifecycle_expiration tag
Matt Benjamin [Fri, 19 Jul 2019 13:19:14 +0000 (09:19 -0400)]
lifecycle: expiration header checks do not require @lifecycle_expiration tag

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agofix syntax error in test_bucket_get_location
Casey Bodley [Wed, 10 Jul 2019 15:22:32 +0000 (11:22 -0400)]
fix syntax error in test_bucket_get_location

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit eaa68f4f7700c88b9c46c3db3abb0b2464fd46e5)

4 years agoskip bucket location test if no api_name is configured
Casey Bodley [Fri, 5 Apr 2019 21:08:59 +0000 (17:08 -0400)]
skip bucket location test if no api_name is configured

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 250122e17d7254227bb1a27d698f28f12f39f7dc)

4 years agoset 'api_name = default' in sample config
Casey Bodley [Fri, 5 Apr 2019 20:48:24 +0000 (16:48 -0400)]
set 'api_name = default' in sample config

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 75182b7e03b088926d415f6b68c93d0ccd5babfd)

4 years agoFix create_bucket tests as per new bucket naming conventions 285/head
Soumya Koduri [Thu, 20 Jun 2019 18:14:13 +0000 (23:44 +0530)]
Fix create_bucket tests as per new bucket naming conventions

As per amazon s3 spec -
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-s3-bucket-naming-requirements.html

The s3 bucket names should not contain upper case letters or underscore.
Name cannot end with dash or have consecutive periods, or dashes adjacent to periods
Name length shouldn't exceed 63 characters.

These rules are being enforced via
- https://github.com/ceph/ceph/pull/26787

This patch is to update the respective testcases as well.

Note: check_invalid_bucket_name() seems to have been broken. It should
try to create bucket using invalid name. Have addressed it in this
patch. Because of this few testcases (which were incorrectly passing
earlier) are failing in validate_bucket_name. Have marked them
'fails_on_rgw' as done for test_bucket_create_naming_bad_punctuation

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
4 years agoAdded testcases for listobjectsv2
albIN7 [Fri, 8 Mar 2019 10:11:16 +0000 (15:41 +0530)]
Added testcases for listobjectsv2

Signed-off-by: Albin Antony <aantony@redhat.com>
4 years agotest versioned copy with urlencoded keys
Casey Bodley [Thu, 30 May 2019 14:21:51 +0000 (10:21 -0400)]
test versioned copy with urlencoded keys

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agoboto{2,3}: rm functional.test_s3.test_lifecycle_rules_conflict
Matt Benjamin [Mon, 18 Mar 2019 06:21:09 +0000 (02:21 -0400)]
boto{2,3}: rm functional.test_s3.test_lifecycle_rules_conflict

The assumption that there may be only one rule per prefix has
been removed.  The rules specifically tested here--without tag
filters--do overlap but are not in conflict.

I am proposing to remove altogether rather than writing new
deconfliction logic.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agoremove boto2 tests already passing in boto3
Ali Maredia [Mon, 1 Apr 2019 04:44:42 +0000 (00:44 -0400)]
remove boto2 tests already passing in boto3

Signed-off-by: Ali Maredia <amaredia@redhat.com>
4 years agoboto3: tag boto3 tests that are failing on ssl as 'fails_on_rgw' 273/head
Ali Maredia [Sun, 31 Mar 2019 21:31:05 +0000 (17:31 -0400)]
boto3: tag boto3 tests that are failing on ssl as 'fails_on_rgw'

Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit 5db9eb059dbab52100ee3a30e77b8ef3a9e3faec)

4 years agoboto3: verify certificates for ssl connections
Casey Bodley [Wed, 27 Feb 2019 16:41:28 +0000 (11:41 -0500)]
boto3: verify certificates for ssl connections

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 0e04dcd6aa62d75a7ed29c6f86e54327d2a34ee0)

4 years agoboto3: _get_post_url() uses config endpoint
Casey Bodley [Tue, 26 Feb 2019 21:25:28 +0000 (16:25 -0500)]
boto3: _get_post_url() uses config endpoint

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 7f49adda30c2b68c7bb94c823f0522c0c91d8e96)

4 years agoboto3: use https:// for secure endpoints
Casey Bodley [Tue, 26 Feb 2019 20:57:19 +0000 (15:57 -0500)]
boto3: use https:// for secure endpoints

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit ac18365f7527e2fcf76ad763502130ef4e535ca5)

4 years agoboto3: use getboolean() for is_secure
Casey Bodley [Wed, 27 Feb 2019 16:40:07 +0000 (11:40 -0500)]
boto3: use getboolean() for is_secure

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 774d40d1147802efdea407f07576993582e4b179)

4 years agoboto3_s3tests: add tests for lifecycle expiration header
Matt Benjamin [Thu, 14 Feb 2019 00:17:20 +0000 (19:17 -0500)]
boto3_s3tests: add tests for lifecycle expiration header

The response to a successful PUT or HEAD (or GET) of/on
an object matching any enabled lifecycle expiration rule should
include an x-amz-expiration header for the object.  The
x-amz-expiration header consists of an expiry-date, rule-id tuple
indicating the earliest matching rule and the corresponding
expiration date for the object.

Also, while at it, add test for lifecycle expiration rule with
'Days' : 0, which should both apply and...work.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 2d12e98ce0f3b975e2c861762e68045c22780553)

4 years agoboto3: Foundation laid for boto3 tests
Ali Maredia [Thu, 7 Dec 2017 20:41:01 +0000 (15:41 -0500)]
boto3: Foundation laid for boto3 tests

Added sample config file for boto3 and vstart.sh

Modified setup.py, requirements.txt, and README

Added an rgw_interactive.py to use interactively
with vstart.sh and python -i

Ported 400+ tests over to boto3 from functional/test_s3.py

Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit 67f4f5d3569f511a3034c9976c25809f73856a96)

5 years agobootstrap: add libffi-dev for gevent wip-boto-3-revert 251/head
Kefu Chai [Wed, 30 May 2018 08:36:52 +0000 (16:36 +0800)]
bootstrap: add libffi-dev for gevent

because gevent 1.3.2 requires cffi>=1.11.5, and cffi requires
libffi-dev to build.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a2b3e4ef771e840f124847380ed39e9ce641d7b7)

5 years agoMerge pull request #192 from joke-lee/cors_option_header_check
Casey Bodley [Mon, 23 Apr 2018 13:01:53 +0000 (09:01 -0400)]
Merge pull request #192 from joke-lee/cors_option_header_check

rgw: test cors option request with Access-Control-Request-Headers

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #220 from joke-lee/max-keys-test
Casey Bodley [Thu, 12 Apr 2018 15:18:14 +0000 (11:18 -0400)]
Merge pull request #220 from joke-lee/max-keys-test

enable test for https://github.com/ceph/ceph/pull/21285

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #182 from gaul/versioning
Ali Maredia [Mon, 9 Apr 2018 18:20:30 +0000 (02:20 +0800)]
Merge pull request #182 from gaul/versioning

Add missing versioning tag

6 years agoenable test for https://github.com/ceph/ceph/pull/21285 220/head
yuliyang [Mon, 9 Apr 2018 16:19:31 +0000 (12:19 -0400)]
enable test for https://github.com/ceph/ceph/pull/21285

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoMerge pull request #217 from cbodley/wip-unpin-requests
Ali Maredia [Thu, 5 Apr 2018 16:47:10 +0000 (00:47 +0800)]
Merge pull request #217 from cbodley/wip-unpin-requests

unpin the requests library version

6 years agorequirements: unpin 'requests' from old v0.14 wip-unpin-requests 217/head
Casey Bodley [Fri, 16 Feb 2018 16:28:31 +0000 (11:28 -0500)]
requirements: unpin 'requests' from old v0.14

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agocors: allow None to match missing headers
Casey Bodley [Fri, 16 Feb 2018 16:21:25 +0000 (11:21 -0500)]
cors: allow None to match missing headers

this is apparently needed to run against newer versions of the requests
library

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #209 from fangyuxiangGL/compression
Casey Bodley [Fri, 16 Feb 2018 16:34:00 +0000 (11:34 -0500)]
Merge pull request #209 from fangyuxiangGL/compression

compression: add case to download range from big object

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #205 from malc0lm/multipartcopy-no-range
Ali Maredia [Tue, 13 Feb 2018 19:03:15 +0000 (14:03 -0500)]
Merge pull request #205 from malc0lm/multipartcopy-no-range

Add test for muiltpart copy without 'x-amz-copy-source-range' header

6 years agocompression: add case to download range from big object 209/head
fang yuxiang [Wed, 7 Feb 2018 08:16:39 +0000 (16:16 +0800)]
compression: add case to download range from big object

Signed-off-by: fang yuxiang <fang.yuxiang@eisoo.com>
6 years agoMerge pull request #191 from theanalyst/policy-conditionals
Casey Bodley [Thu, 25 Jan 2018 16:06:06 +0000 (11:06 -0500)]
Merge pull request #191 from theanalyst/policy-conditionals

test bucket policy with conditionals

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoAdd test for muiltpart copy without 'x-amz-copy-source-range' header 205/head
Malcolm Lee [Wed, 24 Jan 2018 05:55:53 +0000 (13:55 +0800)]
Add test for muiltpart copy without 'x-amz-copy-source-range' header

6 years agopolicy: refactor make_json_policy to use the new Policy classes 191/head
Abhishek Lekshmanan [Mon, 6 Nov 2017 15:47:05 +0000 (16:47 +0100)]
policy: refactor make_json_policy to use the new Policy classes

since make_json_policy is redundantly doing most of the same work,
refactor to use the new policy classes instead

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test existingobject tag on get acl
Abhishek Lekshmanan [Fri, 20 Oct 2017 14:23:55 +0000 (16:23 +0200)]
policy: test existingobject tag on get acl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test put object with reqeust object tag
Abhishek Lekshmanan [Fri, 20 Oct 2017 14:20:52 +0000 (16:20 +0200)]
policy: test put object with reqeust object tag

6 years agopolicy: test policy with sse-c encryption
Abhishek Lekshmanan [Fri, 20 Oct 2017 13:41:32 +0000 (15:41 +0200)]
policy: test policy with sse-c encryption

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agotypo fix for pub_obj_acl
Abhishek Lekshmanan [Fri, 20 Oct 2017 11:51:48 +0000 (13:51 +0200)]
typo fix for pub_obj_acl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: add S3 tests for grants conditionals
Abhishek Lekshmanan [Fri, 20 Oct 2017 11:42:30 +0000 (13:42 +0200)]
policy: add S3 tests for grants conditionals

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agomove ListBucket to new policy class
Abhishek Lekshmanan [Thu, 19 Oct 2017 14:25:42 +0000 (16:25 +0200)]
move ListBucket to new policy class

6 years agopolicy: add a new policy class to make creation of complex policies
Abhishek Lekshmanan [Thu, 19 Oct 2017 14:24:30 +0000 (16:24 +0200)]
policy: add a new policy class to make creation of complex policies

Since policies can have allow/deny rules etc

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test put object with canned acl
Abhishek Lekshmanan [Tue, 17 Oct 2017 17:03:28 +0000 (19:03 +0200)]
policy: test put object with canned acl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test metadta copy key
Abhishek Lekshmanan [Tue, 17 Oct 2017 15:39:49 +0000 (17:39 +0200)]
policy: test metadta copy key

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test put obj using copy conditionals
Abhishek Lekshmanan [Tue, 17 Oct 2017 14:27:27 +0000 (16:27 +0200)]
policy: test put obj using copy conditionals

Test s3:x-amz-copy-source conditional on put obj with x-amz-copy-source

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test for acl grants conditionals on put bucket acls
Abhishek Lekshmanan [Mon, 16 Oct 2017 14:50:56 +0000 (16:50 +0200)]
policy: test for acl grants conditionals on put bucket acls

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: add tests for put bucket acl with canned acl conditionals
Abhishek Lekshmanan [Mon, 16 Oct 2017 14:36:42 +0000 (16:36 +0200)]
policy: add tests for put bucket acl with canned acl conditionals

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agos3: policy tests for ListBucket with prefix, delimiter & max-keys
Abhishek Lekshmanan [Thu, 27 Jul 2017 15:34:11 +0000 (17:34 +0200)]
s3: policy tests for ListBucket with prefix, delimiter & max-keys

Allow conditionals on ListBucket similar to s3 docs which allow for
these clauses

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test put object tagging with conditionals
Abhishek Lekshmanan [Fri, 13 Oct 2017 14:34:50 +0000 (16:34 +0200)]
policy: test put object tagging with conditionals

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agopolicy: test get object tagging with conditionals
Abhishek Lekshmanan [Wed, 17 Jan 2018 09:56:26 +0000 (10:56 +0100)]
policy: test get object tagging with conditionals

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoadd policy tests for get object with conditionals
Abhishek Lekshmanan [Wed, 17 Jan 2018 09:55:02 +0000 (10:55 +0100)]
add policy tests for get object with conditionals

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoadd bucket-policy attr to all the policy tests
Abhishek Lekshmanan [Fri, 13 Oct 2017 14:33:09 +0000 (16:33 +0200)]
add bucket-policy attr to all the policy tests

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agotest_s3: modify make_json_policy to support conditionals
Abhishek Lekshmanan [Fri, 13 Oct 2017 14:31:38 +0000 (16:31 +0200)]
test_s3: modify make_json_policy to support conditionals

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agobucket policy: improve the helper functions used for tagging upwards
Abhishek Lekshmanan [Thu, 12 Oct 2017 13:16:14 +0000 (15:16 +0200)]
bucket policy: improve the helper functions used for tagging upwards

- Improve `make_json_policy` to support conditionals in policy
- Move the helper functions for creating policies up so that bucket
  policy tests can use these
- add bucket-policy attribute to the tagging tests using policy

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #204 from linuxbox2/wip-post-ctype
Matt Benjamin [Thu, 4 Jan 2018 18:41:44 +0000 (13:41 -0500)]
Merge pull request #204 from linuxbox2/wip-post-ctype

Add test case for POST with no Content-Type header

6 years agoAdd test case for POST with no Content-Type header 204/head
Matt Benjamin [Wed, 20 Dec 2017 19:50:49 +0000 (14:50 -0500)]
Add test case for POST with no Content-Type header

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #199 from cfanz/cfanz-version-id-wip
Casey Bodley [Mon, 27 Nov 2017 19:57:26 +0000 (14:57 -0500)]
Merge pull request #199 from cfanz/cfanz-version-id-wip

Add test case for getting version-id when upload objects  bucket

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoAdd test case for getting version-id when upload objects to bucket 199/head
Xinying Song [Thu, 16 Nov 2017 06:23:36 +0000 (14:23 +0800)]
Add test case for getting version-id when upload objects to bucket

For default-bucket and versioning-suspended-bucket, no version-id should return when upload.
For versioning-enabled-bucket, an non-empty version-id should return and equal to what
bucket list shows.

Signed-off-by: Xinying Song <songxinying@cloudin.cn>
6 years agoMerge pull request #196 from ZVampirEM77/wip-lc-typos
Casey Bodley [Thu, 9 Nov 2017 14:02:57 +0000 (09:02 -0500)]
Merge pull request #196 from ZVampirEM77/wip-lc-typos

Fix a typos for lifecycle test case

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #195 from ceph/wip-fix-416
vasukulkarni [Tue, 7 Nov 2017 22:22:45 +0000 (14:22 -0800)]
Merge pull request #195 from ceph/wip-fix-416

Check for either 400 or 416 response code for invalid range test

6 years agocleanup unneeded comments 196/head
Enming Zhang [Sun, 5 Nov 2017 02:58:06 +0000 (10:58 +0800)]
cleanup unneeded comments

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
6 years agoFix a typos for lifecycle test case
Enming Zhang [Sat, 4 Nov 2017 22:29:33 +0000 (06:29 +0800)]
Fix a typos for lifecycle test case

According to the commit 9204283def8e0bcfe14a57f0c87ed20735214f53,
lc debug interval should be set to 10s.

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
6 years agocheck for either 400 or 416 response code for invalid range test wip-fix-416 195/head
Vasu Kulkarni [Fri, 3 Nov 2017 18:21:39 +0000 (11:21 -0700)]
check for either 400 or 416 response code for invalid range test

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoMerge pull request #189 from joke-lee/list_bucket_versiong_with_marker
Yehuda Sadeh [Thu, 26 Oct 2017 16:40:40 +0000 (09:40 -0700)]
Merge pull request #189 from joke-lee/list_bucket_versiong_with_marker

test for https://github.com/ceph/ceph/pull/17934

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agorgw: test cors option request with Access-Control-Request-Headers 192/head
yuliyang [Thu, 26 Oct 2017 10:27:23 +0000 (18:27 +0800)]
rgw: test cors option request with Access-Control-Request-Headers
test for https://github.com/ceph/ceph/pull/18556

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoMerge pull request #190 from cbodley/wip-pr-17882
Yehuda Sadeh [Tue, 10 Oct 2017 18:49:42 +0000 (11:49 -0700)]
Merge pull request #190 from cbodley/wip-pr-17882

expect 400 for missing sse headers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoexpect 400 for missing sse headers 190/head
Casey Bodley [Tue, 10 Oct 2017 17:48:51 +0000 (13:48 -0400)]
expect 400 for missing sse headers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #171 from cbodley/wip-amz-date-precedence
Yehuda Sadeh [Mon, 25 Sep 2017 16:15:07 +0000 (19:15 +0300)]
Merge pull request #171 from cbodley/wip-amz-date-precedence

check precedence of Date and X-Amz-Date in signatures

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agotest for https://github.com/ceph/ceph/pull/17934 189/head
yuliyang [Sun, 24 Sep 2017 03:56:36 +0000 (11:56 +0800)]
test for https://github.com/ceph/ceph/pull/17934

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoMerge pull request #186 from tipabu/check-grant-ordering
Yehuda Sadeh [Wed, 20 Sep 2017 08:55:52 +0000 (11:55 +0300)]
Merge pull request #186 from tipabu/check-grant-ordering

Care less about ordering when checking grants

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #185 from theanalyst/lc-time-fixes
Yehuda Sadeh [Tue, 19 Sep 2017 09:57:33 +0000 (12:57 +0300)]
Merge pull request #185 from theanalyst/lc-time-fixes

lc: Give more flexibility for LC expiration times

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoCare less about ordering when checking grants 186/head
Tim Burke [Tue, 12 Sep 2017 18:42:35 +0000 (12:42 -0600)]
Care less about ordering when checking grants

Some tests, like test_object_header_acl_grants and
test_bucket_header_acl_grants, use the same id for all permissions.
Sort() is stable, so those tests end up testing the order of acl grants
returned by Boto. Not sure, but I think this may in turn depend on the
order of HTTP headers, where the order is not significant.

Signed-off-by: Tim Burke <tim.burke@gmail.com>
6 years agolc: Give more flexibility for LC expiration times 185/head
Abhishek Lekshmanan [Thu, 7 Sep 2017 09:50:00 +0000 (11:50 +0200)]
lc: Give more flexibility for LC expiration times

Earlier values expected a lc debug interval of 2s, which is a pretty
short time window and can often lead to failures if the processing
didn't complete within the next day. This commit assumes the currently
configured LC debug interval of 10s, and gives time intervals using the
following logic:

Worst case:
LC start-time : 00:00
obj upload    : 00:01
LC run1       : 00:10 -> object not expired as it is only 9s old
LC run2       : 00:20 -> object will expire in this run, however we
can't exactly guess when this run will complete, for a moderate amount
of objects this can take anywhere between 1 to a max of 10s, let us give
it a wiggle room to complete around 8s, given the amount of objects in a
teuthology run, it should be mostly probable that the object is already
deleted within this time, so at 28s, we should have seen day1 objects being
expired.

Best case:
LC start-time: 00:00
obj upload : 00:09
LC run1 : 00:10
LC run2 : 00:20 -> obj expires, so elapsed time is around 11->19s (of
course it would almost close to 10s too), We should probably configure
the LC lock time to 10s as well just so as to ensure that the lock isn't
held for the default 60s in which case it is possible that the object
might expire in a time greater than the lock interval.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #173 from chuang-he/fix_decrypt
Yehuda Sadeh [Wed, 30 Aug 2017 12:53:36 +0000 (15:53 +0300)]
Merge pull request #173 from chuang-he/fix_decrypt

Data encryption is not follow the AWS agreement

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomodify test_sse_kms_method_head() for aws standard 173/head
hechuang [Mon, 3 Jul 2017 04:11:08 +0000 (12:11 +0800)]
modify test_sse_kms_method_head() for aws standard

Signed-off-by: hechuang <hechuang@xsky.com>
6 years agoadd test_sse_kms_read_declare() for aws standard
hechuang [Fri, 30 Jun 2017 06:19:45 +0000 (14:19 +0800)]
add test_sse_kms_read_declare() for aws standard

Signed-off-by: hechuang <hechuang@xsky.com>
6 years agorgw: Data encryption is not follow the AWS agreement
hechuang [Fri, 30 Jun 2017 05:56:58 +0000 (13:56 +0800)]
rgw: Data encryption is not follow the AWS agreement

Encryption request headers should not be sent for GET requests and HEAD
requests if your object uses SSE-KMS/SSE-S3 or you’ll get an HTTP 400
BadRequest error.

Signed-off-by: hechuang <hechuang@xsky.com>
6 years agoAdd missing versioning tag 182/head
Andrew Gaul [Wed, 16 Aug 2017 21:08:30 +0000 (14:08 -0700)]
Add missing versioning tag

Signed-off-by: Andrew Gaul <andrew@gaul.org>
6 years agoMerge pull request #179 from andrewgaul/copy-part-invalid-range
Yehuda Sadeh [Wed, 16 Aug 2017 16:36:07 +0000 (09:36 -0700)]
Merge pull request #179 from andrewgaul/copy-part-invalid-range

Add test for invalid copy part range

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #181 from theanalyst/lc-expir-disable
Yehuda Sadeh [Tue, 15 Aug 2017 15:43:53 +0000 (08:43 -0700)]
Merge pull request #181 from theanalyst/lc-expir-disable

lc: set attribute as lifecycle_time for lc tests using timing ops

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agolc: add attr lifecycle_expiration for lc tests using expiration 181/head
Abhishek Lekshmanan [Mon, 14 Aug 2017 14:56:13 +0000 (16:56 +0200)]
lc: add attr lifecycle_expiration for lc tests using expiration

Allows us to additionally filter out these tests which currently fail in
the teuthology runs

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #180 from theanalyst/lc-filter
Yehuda Sadeh [Tue, 15 Aug 2017 06:06:36 +0000 (23:06 -0700)]
Merge pull request #180 from theanalyst/lc-filter

lifecycle: add test cases using filter & no id

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agolifecycle: add test cases using filter & no id 180/head
Abhishek Lekshmanan [Fri, 11 Aug 2017 11:52:21 +0000 (13:52 +0200)]
lifecycle: add test cases using filter & no id

Added test cases for LC policies with no ID in xml, no prefix and an
empty and non empty Filter.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoAdd test for invalid copy part range 179/head
Andrew Gaul [Wed, 2 Aug 2017 01:14:28 +0000 (18:14 -0700)]
Add test for invalid copy part range

References kahing/goofys#212.

Signed-off-by: Andrew Gaul <andrew@gaul.org>
6 years agoMerge pull request #159 from theanalyst/wip-tagging
Matt Benjamin [Tue, 25 Jul 2017 17:27:14 +0000 (13:27 -0400)]
Merge pull request #159 from theanalyst/wip-tagging

add tests for tagging functionality

6 years agoadd tests for get/put/delete/post object tagging 159/head
Abhishek Lekshmanan [Tue, 25 Jul 2017 08:32:05 +0000 (10:32 +0200)]
add tests for get/put/delete/post object tagging

- adds test for put obj with tagging query
- adds test for HEAD obj with x-amz-tagging-count verification
- adds test for put object tagging
- adds test for get object tagging
- adds test for post object tagging
- adds test for delete object tagging
- also verify& exceed the max tags
- add tagging condition to bucket acl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge pull request #167 from joke-lee/PolicyConditionOpEndWithifExist
Yehuda Sadeh [Sat, 8 Jul 2017 00:08:51 +0000 (17:08 -0700)]
Merge pull request #167 from joke-lee/PolicyConditionOpEndWithifExist

add test case: test set policy with condition operator end with IfExists

Reviewed-By: Adam C. Emerson <aemerson@redhat.com>
6 years agoadd test case: test set policy with condition operator end with IfExists 167/head
yuliyang [Wed, 14 Jun 2017 02:57:30 +0000 (10:57 +0800)]
add test case: test set policy with condition operator end with IfExists

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoMerge pull request #174 from ceph/wip-underscore-prefix
Yehuda Sadeh [Fri, 7 Jul 2017 21:04:43 +0000 (14:04 -0700)]
Merge pull request #174 from ceph/wip-underscore-prefix

Add test for bucket list with prefix with underscore

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #170 from zhangsw/lifecycle-date
Yehuda Sadeh [Fri, 7 Jul 2017 20:59:34 +0000 (13:59 -0700)]
Merge pull request #170 from zhangsw/lifecycle-date

add test case for lifecycle expiration date.

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>