Commit graph

964 commits

Author SHA1 Message Date
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
Yehuda Sadeh
368b27a5c3 Merge pull request #56 from jmunhoz/bug-11753
s3tests: Test copying foreign object in foreign bucket

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-28 01:39:08 -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
0aa8e1ce3f Merge pull request #55 from ceph/wip-bootstrap-pkg-install
bootstrap: apt/yum install the list of dependencies

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-15 10:36:34 -07:00
Ken Dreyer
84a22c336b bootstrap: apt/yum install the list of dependencies
If RPM or DEB packages are missing, don't print to STDERR and bail.
Instead, assume that the user has sudo rights, and attempt to install
the missing packages for the user automatically.
2015-05-15 11:18:55 -06: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
Yehuda Sadeh
f9ab26c05c Merge pull request #52 from andrewgaul/nuke-empty-bucket
Handle empty bucket while nuking

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-01 13:14:39 -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
Yehuda Sadeh
e4dafa0cc2 Merge pull request #51 from andrewgaul/nuke-bucket-without-versions
Fall back when nuking buckets

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-24 14:50:49 -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
Yehuda Sadeh
1e9ba11d9e Merge pull request #50 from andrewgaul/test-object-acl-canned-during-create
Add test_object_acl_canned_during_create

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-24 09:16:45 -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
Yehuda Sadeh
efde9743d8 Merge pull request #47 from andrewgaul/copy-blob-content-type
Replace and retain Content-Type in copy tests

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-06 10:00:38 -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
Yehuda Sadeh
2747fb9311 Merge pull request #44 from ceph/wip-10551
Add fails_on_mod_proxy_fcgi to functional.test_s3.test_100_continue

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-03-17 09:31:17 -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
Yehuda Sadeh
e8c675a49b Merge pull request #42 from andrewgaul/copy-replace-retain-metadata
Copy tests for replacing and retaining metadata

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-03-02 14:20:16 -08: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
ecbb481bea Merge branch 'wip-rgw-versioning-4' 2015-01-30 07:29:42 -08:00
Yehuda Sadeh
f4efa882ff Merge remote-tracking branch 'github/next' 2015-01-29 15:37:35 -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