Commit graph

479 commits

Author SHA1 Message Date
Adam Kupczyk
bad1554d09 A bit more test for kms
Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
(cherry picked from commit 33deec9a77)
2017-04-18 12:40:22 -04:00
Adam Kupczyk
f4cf8eceb7 Additional tests for server side encryption, S3 SSE-KMS mode.
All tests belong to group 'encryption'.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
(cherry picked from commit f8761f855b)
2017-04-18 12:40:22 -04:00
Adam Kupczyk
ea2454654e Additional tests for server side encryption, S3 SSE-C mode.
All tests belong to group 'encryption'.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
(cherry picked from commit d92031ef16)
2017-04-18 12:40:17 -04:00
Matt Benjamin
cab30ee8ab Merge pull request #143 from mdw-at-linuxbox/ceph-master-setupfix
Use non-broken version of setuptools, and fix bootstrap to be more po…
2017-01-26 11:08:31 -05:00
Marcus Watts
e85c6f3dda 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
,s 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>
(cherry picked from commit ddc150439d)
2017-01-26 04:27:35 -05:00
Matt Benjamin
5562bd6143 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>
2017-01-25 16:33:17 -05:00
Sage Weil
dfc7a1271b test_s3: mark test_oject_head_zero_bytes fails_on_rgw
It works on civetweb, fails on apache.  Revert this once it is fixed.

See http://tracker.ceph.com/issues/15460

Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 08:29:02 -04:00
Loic Dachary
a72fc4a231 Merge pull request #104 from zhouyuan/update_gevent_1
gevent: bump to >=1.0

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2016-04-12 08:22:42 +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
Orit Wasserman
600da5cdcf Merge pull request #99 from jmunhoz/wip-mp-cp-fails-on-rgw
Add fails_on_rgw on multipart copy part tests
2016-04-05 11:12:25 +02: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
cebb3dbb79 Merge pull request #97 from ceph/wip-15243
rgw: add a few tests that check for null object versioning behavior

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-03-23 08:25:47 -07: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
Yehuda Sadeh
4cc37c888f Merge pull request #91 from jmunhoz/wip-x-amz-expires-tc
rgw: add X-Amz-Expires test cases

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-04 08:19:52 -08: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
Yehuda Sadeh
1ae3460940 Merge pull request #79 from dreamhost/wip-proxy
Improve proxy error support: "Bad Request" case

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-18 12:02:08 -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
Yehuda Sadeh
864da5ee89 Merge pull request #84 from jmunhoz/wip-aws4-support
rgw: add AWS4 auth testing support

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-18 09:46:29 -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
Yehuda Sadeh
d7f3992f33 Merge pull request #86 from jmunhoz/wip-copy-mp-cc
s3tests: Check content is correct on copy multipart

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-09 09:11:54 -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
83c9269619 Merge pull request #70 from tobegit3hub/fix_example_in_readme
Fix the example which is deprecated in README.rst

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-08-13 10:31:47 -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
Yehuda Sadeh
ec5294fcfc Merge pull request #59 from robbat2/wip-website-fuzzy
fuzz: Write fuzzer rules for WebsiteConfiguration.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-08-13 10:21:51 -07:00
tobe
3f518a2ae7 Use test_bucket_list_empty as example in README 2015-08-03 20:30:46 +08:00