]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
11 years agoRemove "--allow-hosts None" because it magically makes things work next
Dan Mick [Tue, 14 Jul 2015 17:19:37 +0000 (10:19 -0700)]
Remove "--allow-hosts None" because it magically makes things work

Fixes: 12302
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit 5f34b358fc7f9e76ff51f0d47208780fd41f73a9)

11 years agos3tests: fix for python 2.6
Yehuda Sadeh [Tue, 30 Jun 2015 18:26:35 +0000 (11:26 -0700)]
s3tests: fix for python 2.6

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agos3tests: more thorough multipart resend tests wip-11622-firefly
Yehuda Sadeh [Thu, 14 May 2015 00:10:07 +0000 (17:10 -0700)]
s3tests: more thorough multipart resend tests

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

Conflicts:
s3tests/functional/test_s3.py

11 years agoradosgw-admin: test resend of a multipart upload part
Yehuda Sadeh [Wed, 13 May 2015 00:06:11 +0000 (17:06 -0700)]
radosgw-admin: test resend of a multipart upload part

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

11 years agoMerge pull request #41 from ceph/wip-10770
Sage Weil [Thu, 5 Feb 2015 19:32:23 +0000 (11:32 -0800)]
Merge pull request #41 from ceph/wip-10770

rgw: concurrent non-versioned object creation, deletion

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agorgw: concurrent non-versioned object creation, deletion 41/head
Yehuda Sadeh [Thu, 5 Feb 2015 18:02:45 +0000 (10:02 -0800)]
rgw: concurrent non-versioned object creation, deletion

Tests issue #10770: bad bucket index entry on bucket index cancelled
operation.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3tests: test POST with bad access key
Yehuda Sadeh [Thu, 5 Feb 2015 17:39:13 +0000 (09:39 -0800)]
s3tests: test POST with bad access key

Tests issue #10698

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge branch 'wip-rgw-versioning-4'
Yehuda Sadeh [Fri, 30 Jan 2015 15:29:42 +0000 (07:29 -0800)]
Merge branch 'wip-rgw-versioning-4'

11 years agoMerge remote-tracking branch 'github/next'
Yehuda Sadeh [Thu, 29 Jan 2015 23:37:35 +0000 (15:37 -0800)]
Merge remote-tracking branch 'github/next'

11 years agoMerge branch 'wip-bi-sharding-3' into wip-rgw-versioning-3 wip-rgw-versioning-4
Yehuda Sadeh [Thu, 22 Jan 2015 23:24:07 +0000 (15:24 -0800)]
Merge branch 'wip-bi-sharding-3' into wip-rgw-versioning-3

Conflicts:
s3tests/functional/test_s3.py

11 years agos3tests: send raw http requests to test redirects
Yehuda Sadeh [Wed, 14 Jan 2015 00:46:33 +0000 (16:46 -0800)]
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>
11 years agoMerge pull request #27 from xylv/wip-test-issue-10311
Yehuda Sadeh [Wed, 21 Jan 2015 22:49:47 +0000 (14:49 -0800)]
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>
11 years agos3tests: test list bucket versions wip-rgw-object-versioning wip-rgw-versioning-3
Yehuda Sadeh [Fri, 9 Jan 2015 00:11:23 +0000 (16:11 -0800)]
s3tests: test list bucket versions

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3tests: concurrent object versioning tests
Yehuda Sadeh [Wed, 24 Dec 2014 00:26:47 +0000 (16:26 -0800)]
s3tests: concurrent object versioning tests

test concurrent creation and removal

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3tests: versioned get_acl, put_acl
Yehuda Sadeh [Tue, 23 Dec 2014 18:14:38 +0000 (10:14 -0800)]
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>
11 years agos3test: add a new multi obj delete test
Yehuda Sadeh [Tue, 23 Dec 2014 01:00:43 +0000 (17:00 -0800)]
s3test: add a new multi obj delete test

Validate creation of delete marker.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3test: add versioned multi delete
Yehuda Sadeh [Mon, 22 Dec 2014 23:47:13 +0000 (15:47 -0800)]
s3test: add versioned multi delete

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agotest: fixes
Yehuda Sadeh [Fri, 12 Dec 2014 18:14:37 +0000 (10:14 -0800)]
test: fixes

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3test: test copy version
Yehuda Sadeh [Mon, 24 Nov 2014 18:47:16 +0000 (10:47 -0800)]
s3test: test copy version

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agotest_s3: add versioned multipart upload test
Yehuda Sadeh [Mon, 17 Nov 2014 19:08:13 +0000 (11:08 -0800)]
test_s3: add versioned multipart upload test

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3tests: more object versioning tests
Yehuda Sadeh [Sat, 15 Nov 2014 00:57:51 +0000 (16:57 -0800)]
s3tests: more object versioning tests

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3tests: object version removal and delete marker test
Yehuda Sadeh [Fri, 31 Oct 2014 00:05:13 +0000 (17:05 -0700)]
s3tests: object version removal and delete marker test

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3tests: extend object versions test
Yehuda Sadeh [Thu, 30 Oct 2014 20:19:59 +0000 (13:19 -0700)]
s3tests: extend object versions test

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agos3tests: add test_versioning_obj_create_read_remove()
Yehuda Sadeh [Wed, 29 Oct 2014 22:26:57 +0000 (15:26 -0700)]
s3tests: add test_versioning_obj_create_read_remove()

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agofunctional: add test_versioning_bucket_create_suspend()
Yehuda Sadeh [Tue, 28 Oct 2014 23:04:39 +0000 (16:04 -0700)]
functional: add test_versioning_bucket_create_suspend()

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoteardown: clean object versions
Yehuda Sadeh [Tue, 28 Oct 2014 22:20:58 +0000 (15:20 -0700)]
teardown: clean object versions

also don't set acls on buckets, objects before removing, no need for
that.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #38 from ceph/wip-bi-sharding-3
Alfredo Deza [Mon, 19 Jan 2015 17:17:36 +0000 (12:17 -0500)]
Merge pull request #38 from ceph/wip-bi-sharding-3

s3tests: send raw http requests to test redirects

11 years agos3tests: send raw http requests to test redirects wip-bi-sharding-3 38/head 40/head
Yehuda Sadeh [Wed, 14 Jan 2015 00:46:33 +0000 (16:46 -0800)]
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>
11 years agoMerge pull request #28 from ceph/wip-bad-auth-test
Alfredo Deza [Tue, 16 Dec 2014 21:03:17 +0000 (16:03 -0500)]
Merge pull request #28 from ceph/wip-bad-auth-test

test_object_create_bad_authorization_incorrect: fixes

11 years agotest_object_create_bad_authorization_incorrect: fixes wip-bad-auth-test 28/head
Yehuda Sadeh [Tue, 16 Dec 2014 20:56:53 +0000 (12:56 -0800)]
test_object_create_bad_authorization_incorrect: fixes

The test should expect BadSignature. Also, provide a key that does not
already exist on aws.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #26 from ceph/wip-10066
Josh Durgin [Tue, 16 Dec 2014 07:17:51 +0000 (23:17 -0800)]
Merge pull request #26 from ceph/wip-10066

fixes/improves weird hashing issues on readwrite tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
11 years agoRevert "test_bucket_create_exists should fail on recreate"
Alfredo Deza [Mon, 15 Dec 2014 15:41:59 +0000 (10:41 -0500)]
Revert "test_bucket_create_exists should fail on recreate"

This reverts commit c82649b6353893770af8cd453af38d61dfd1e363.

The suite does not support duality in behaviors (e.g.
US Standard vs. Regional behavior) so we adhere to US
Standard only.

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agos3tests: add regression test for bug #10311 - rgw: Object is deleted automatically... 27/head
Ray Lv [Mon, 15 Dec 2014 08:47:34 +0000 (16:47 +0800)]
s3tests: add regression test for bug #10311 - rgw: Object is deleted automatically if conditional PUT returns 412

Test for bug #10311

Signed-off-by: Ray Lv <raylv@yahoo-inc.com>
11 years agofix broken/commented tests 26/head
Alfredo Deza [Fri, 12 Dec 2014 18:53:43 +0000 (13:53 -0500)]
fix broken/commented tests

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agouse the new helpers for realistic files
Alfredo Deza [Fri, 12 Dec 2014 18:53:19 +0000 (13:53 -0500)]
use the new helpers for realistic files

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agoalways seek back to 0, remove chunk usage
Alfredo Deza [Fri, 12 Dec 2014 18:52:43 +0000 (13:52 -0500)]
always seek back to 0, remove chunk usage

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agoMerge pull request #23 from xylv/wip-test-issue-8562
Yehuda Sadeh [Fri, 12 Dec 2014 18:42:54 +0000 (10:42 -0800)]
Merge pull request #23 from xylv/wip-test-issue-8562

s3tests: add conditional put test

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agoadding a new FileValidator
Alfredo Deza [Fri, 12 Dec 2014 16:12:10 +0000 (11:12 -0500)]
adding a new FileValidator

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agonew tests for the new pseudo-random content files
Alfredo Deza [Fri, 12 Dec 2014 16:09:27 +0000 (11:09 -0500)]
new tests for the new pseudo-random content files

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agoadding a proof for the realistic bugs
Alfredo Deza [Wed, 10 Dec 2014 21:55:54 +0000 (16:55 -0500)]
adding a proof for the realistic bugs

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agoMerge pull request #19 from andrewgaul/query-string-authorization-expiration
Alfredo Deza [Thu, 4 Dec 2014 14:43:25 +0000 (09:43 -0500)]
Merge pull request #19 from andrewgaul/query-string-authorization-expiration

Test query string authorization expiration

11 years agoMerge pull request #17 from andrewgaul/delete-object-non-existent-bucket
Alfredo Deza [Thu, 4 Dec 2014 14:37:11 +0000 (09:37 -0500)]
Merge pull request #17 from andrewgaul/delete-object-non-existent-bucket

Test delete object on non-existent bucket

11 years agoMerge pull request #24 from andrewgaul/list-bucket
Alfredo Deza [Thu, 4 Dec 2014 14:32:08 +0000 (09:32 -0500)]
Merge pull request #24 from andrewgaul/list-bucket

Improve list bucket invalid and bad auth tests

11 years agoMerge pull request #9 from andrewgaul/bucket-create-exists
Alfredo Deza [Thu, 4 Dec 2014 14:28:31 +0000 (09:28 -0500)]
Merge pull request #9 from andrewgaul/bucket-create-exists

test_bucket_create_exists should fail on recreate

11 years agoImprove list bucket invalid and bad auth tests 24/head
Andrew Gaul [Thu, 4 Dec 2014 04:38:00 +0000 (20:38 -0800)]
Improve list bucket invalid and bad auth tests

Explicitly test invalid access keys and valid access keys but invalid
secret keys.  Also disable anonymous list bucket test for AWS.
radosgw uses this for connectivity testing but AWS does not allow it:

http://ceph.com/docs/master/radosgw/config/#verify-the-runtime
http://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html

11 years agos3tests: add conditional put test 23/head
Ray Lv [Wed, 19 Nov 2014 06:48:23 +0000 (06:48 +0000)]
s3tests: add conditional put test

Test for issue #8562

Signed-off-by: Ray Lv <raylv@yahoo-inc.com>
11 years agoMerge pull request #22 from ceph/wip-configurable-copy
Josh Durgin [Mon, 20 Oct 2014 20:45:39 +0000 (13:45 -0700)]
Merge pull request #22 from ceph/wip-configurable-copy

test_s3: add is_slow_backend

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agotest_s3: fix test_list_multipart_upload()
Yehuda Sadeh [Tue, 14 Oct 2014 18:47:02 +0000 (11:47 -0700)]
test_s3: fix test_list_multipart_upload()

Test was calling _multipart_upload() with extra useless param, this
broke when we added a new param to the function.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #21 from lpabon/small_multipart_upload
Yehuda Sadeh [Mon, 13 Oct 2014 19:52:09 +0000 (12:52 -0700)]
Merge pull request #21 from lpabon/small_multipart_upload

Multipart test with 10k small objects.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agoMultipart test with 10k small objects. 21/head
Luis Pabón [Mon, 13 Oct 2014 14:10:27 +0000 (10:10 -0400)]
Multipart test with 10k small objects.

Test detects that the server returns the correct error
code

Signed-off-by: Luis Pabón <lpabon@redhat.com>
11 years agotest_s3: add is_slow_backend 22/head
Yehuda Sadeh [Fri, 3 Oct 2014 22:09:27 +0000 (15:09 -0700)]
test_s3: add is_slow_backend

for slow ec region copy

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoreadwrite: dump a more meaningful message on md5 read error wip-sam-firefly-testing
Yehuda Sadeh [Tue, 26 Aug 2014 21:03:47 +0000 (14:03 -0700)]
readwrite: dump a more meaningful message on md5 read error

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoTest query string authorization expiration 19/head
Andrew Gaul [Sun, 24 Aug 2014 01:34:02 +0000 (18:34 -0700)]
Test query string authorization expiration

11 years agoTest delete object on non-existent bucket 17/head
Andrew Gaul [Fri, 22 Aug 2014 18:05:09 +0000 (11:05 -0700)]
Test delete object on non-existent bucket

12 years agotest_bucket_create_exists should fail on recreate 9/head
Andrew Gaul [Thu, 31 Jul 2014 08:27:57 +0000 (01:27 -0700)]
test_bucket_create_exists should fail on recreate

AWS S3 has two behaviors for recreating a bucket depending if you use
the us-standard or another region:

>>> bucket = conn.create_bucket('gaul-default', location=Location.DEFAULT)
>>> bucket = conn.create_bucket('gaul-default', location=Location.DEFAULT)
>>> bucket = conn.create_bucket('gaul-uswest', location=Location.USWest)
>>> bucket = conn.create_bucket('gaul-uswest', location=Location.USWest)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/boto/s3/connection.py", line 499, in create_bucket
    response.status, response.reason, body)
boto.exception.S3CreateError: S3CreateError: 409 Conflict
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>BucketAlreadyOwnedByYou</Code><Message>Your previous request to create the named bucket succeeded and you already own it.</Message><BucketName>gaul-uswest</BucketName><RequestId>24B6DC3170365CD7</RequestId><HostId>hUynMTyqc9WZFxAJ2RFK6P7BqmmeHHlMl9xL2NOy56xBUnOZCAlHqGvtMeGeAfVs</HostId></Error>

Additional discussion:

https://issues.apache.org/jira/browse/JCLOUDS-334

12 years agotest_s3: add bucket listing tests
Yehuda Sadeh [Fri, 18 Jul 2014 20:51:22 +0000 (13:51 -0700)]
test_s3: add bucket listing tests

Test prefix, delimiter, common prefixes, max_keys.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: add more multipart upload tests
Yehuda Sadeh [Wed, 16 Jul 2014 20:22:38 +0000 (13:22 -0700)]
rgw: add more multipart upload tests

Check for issue #8846.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agos3tests: extende multipart upload test
Yehuda Sadeh [Tue, 3 Jun 2014 23:14:59 +0000 (16:14 -0700)]
s3tests: extende multipart upload test

Test for issue #8452

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agotest_s3: add some debug prints for multi region test
Yehuda Sadeh [Tue, 1 Apr 2014 19:20:24 +0000 (12:20 -0700)]
test_s3: add some debug prints for multi region test

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agotest_s3: extend multipart test
Yehuda Sadeh [Tue, 1 Apr 2014 19:20:16 +0000 (12:20 -0700)]
test_s3: extend multipart test

Make test use a multipart upload with different part sizes, to exercise
code that triggered #7935.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agotest_s3: extend multi-delete test
Yehuda Sadeh [Tue, 1 Apr 2014 19:20:08 +0000 (12:20 -0700)]
test_s3: extend multi-delete test

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoAdded pip 1.5 workaround.
Sandon Van Ness [Fri, 10 Jan 2014 03:09:39 +0000 (19:09 -0800)]
Added pip 1.5 workaround.

Setuptools needs to be upgraded with --no-use-wheel. A change we
already were using in other projects.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
12 years agoMerge branch 'next'
Yehuda Sadeh [Sat, 7 Sep 2013 04:54:46 +0000 (21:54 -0700)]
Merge branch 'next'

12 years agoMerge branch 'wip-6078' into next
Yehuda Sadeh [Sat, 7 Sep 2013 04:54:25 +0000 (21:54 -0700)]
Merge branch 'wip-6078' into next

12 years agorgw: extend cors tests
Yehuda Sadeh [Wed, 4 Sep 2013 23:45:00 +0000 (16:45 -0700)]
rgw: extend cors tests

Checks all sort of issues related to #6078.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agofix nuke_buckets for non-region tests
Joe Buck [Sat, 31 Aug 2013 06:38:04 +0000 (23:38 -0700)]
fix nuke_buckets for non-region tests

Signed-off-by: Joe Buck <jbbuck@gmail.com>
12 years agoMoving region_sync to utils
Joe Buck [Thu, 29 Aug 2013 22:37:15 +0000 (15:37 -0700)]
Moving region_sync to utils

Since other classes need to do syncs,
let's move it to the utils file.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoRework nuke_buckets
Joe Buck [Thu, 29 Aug 2013 22:48:09 +0000 (15:48 -0700)]
Rework nuke_buckets

Nuke all buckets on the master, sync, and then
nuke any remaining buckets on non-master regions.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoImprove post-test cleanup
Joe Buck [Wed, 28 Aug 2013 16:36:42 +0000 (09:36 -0700)]
Improve post-test cleanup

The multi-region tests were not being diligent
about cleaning up their buckets / keys
and making sure that those deletes were synced.
This was causing the nuke_prefixed_buckets()
method to run into errors.
This patch adds more cleanup code and
validation of that cleanup within
the pertinent tests.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
12 years agoAdd support for default_region
Joe Buck [Wed, 21 Aug 2013 22:47:04 +0000 (15:47 -0700)]
Add support for default_region

Changes to actually use the
'default_region' setting in the
S3TEST_CONF file.
Previously, the first connection set
was assumed to be the default.
This means that the parse order
of the S3TEST_CONF file was dictating
how the tests behaved, resulting in
failures in some cases.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: more extensive CORS testing
Yehuda Sadeh [Wed, 28 Aug 2013 02:47:07 +0000 (19:47 -0700)]
rgw: more extensive CORS testing

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoreadwrite: add missing traceback object
Joe Buck [Mon, 26 Aug 2013 20:58:59 +0000 (13:58 -0700)]
readwrite: add missing traceback object

An error code path was missing the traceback
object and was causing a key error when
that path was executed.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
12 years agoMerge branch 'next'
Yehuda Sadeh [Fri, 16 Aug 2013 17:55:54 +0000 (10:55 -0700)]
Merge branch 'next'

Conflicts:
s3tests/functional/test_s3.py

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoreadwrite: error propagation code
Joe Buck [Fri, 9 Aug 2013 04:47:34 +0000 (21:47 -0700)]
readwrite: error propagation code

This is my attempt at enabling errors
in the readwrite.py to propate up
to the calling teuthology task.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
12 years agoreadwrite.py: adding parameters
Joe Buck [Fri, 2 Aug 2013 23:49:20 +0000 (16:49 -0700)]
readwrite.py: adding parameters

Add an optional parameter to trigger deterministic
file name creation (for separate write/read tasks).
Also, change the behavior when zero writers
are specified to actually generate no data.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorename 'partial' metadata sync to 'incremental'
Yehuda Sadeh [Mon, 5 Aug 2013 20:55:22 +0000 (13:55 -0700)]
rename 'partial' metadata sync to 'incremental'

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: improve cors test to cover more functionality
Yehuda Sadeh [Thu, 1 Aug 2013 20:24:28 +0000 (13:24 -0700)]
s3tests: improve cors test to cover more functionality

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: basic cors test
Yehuda Sadeh [Thu, 6 Jun 2013 18:19:05 +0000 (11:19 -0700)]
test_s3: basic cors test

related to issue #5261

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: only tun multiregion tests if configured wip-multiregion
Yehuda Sadeh [Mon, 29 Jul 2013 20:17:46 +0000 (13:17 -0700)]
s3tests: only tun multiregion tests if configured

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: modify cross region copy, sync triggering
Yehuda Sadeh [Sat, 27 Jul 2013 05:19:36 +0000 (22:19 -0700)]
s3tests: modify cross region copy, sync triggering

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: improve cross region copy, sync meta
Yehuda Sadeh [Sat, 27 Jul 2013 03:33:48 +0000 (20:33 -0700)]
s3tests: improve cross region copy, sync meta

Can now configure sync agent rest address in order to force
a sync operation. Another option is to set a waiting time for
meta sync.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: basic test to copy object between regions
Yehuda Sadeh [Sat, 27 Jul 2013 01:07:52 +0000 (18:07 -0700)]
s3tests: basic test to copy object between regions

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: test_region_bucket_create_secondary_access_master
Yehuda Sadeh [Fri, 26 Jul 2013 18:16:36 +0000 (11:16 -0700)]
s3tests: test_region_bucket_create_secondary_access_master

first multi-region test

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: some more multiregion changes
Yehuda Sadeh [Fri, 26 Jul 2013 17:46:56 +0000 (10:46 -0700)]
s3tests: some more multiregion changes

Now creating a connection per region for each user, can access
master and secondaries, and set a default region.
No longer using a specific region per user, as it doesn't
make sense.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3_test: add test for listing objects with special prefix
Yehuda Sadeh [Mon, 17 Jun 2013 18:44:01 +0000 (11:44 -0700)]
s3_test: add test for listing objects with special prefix

Check for ceph issue #5362. Prefix starts with underscore.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: basic cors test
Yehuda Sadeh [Thu, 6 Jun 2013 18:19:05 +0000 (11:19 -0700)]
test_s3: basic cors test

related to issue #5261

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorequirements.txt: work around pip 1.4 issue
Yehuda Sadeh [Wed, 24 Jul 2013 18:51:26 +0000 (11:51 -0700)]
requirements.txt: work around pip 1.4 issue

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoset the region is_master field
Yehuda Sadeh [Thu, 25 Jul 2013 23:44:41 +0000 (16:44 -0700)]
set the region is_master field

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorearrange regions info container
Yehuda Sadeh [Thu, 25 Jul 2013 23:43:19 +0000 (16:43 -0700)]
rearrange regions info container

Now able to easily get the master and secondaries

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoadd flexible multi-region configuration
Yehuda Sadeh [Thu, 25 Jul 2013 21:13:34 +0000 (14:13 -0700)]
add flexible multi-region configuration

can now create a region-specific configuration:

[region foo]
api_name = ...
host = ...
port = ...

and set that region to be used for specific connection:

[s3 main]
region = foo

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agosupport region configuration
Yehuda Sadeh [Wed, 24 Jul 2013 20:23:24 +0000 (13:23 -0700)]
support region configuration

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorequirements.txt: work around pip 1.4 issue
Yehuda Sadeh [Wed, 24 Jul 2013 18:51:26 +0000 (11:51 -0700)]
requirements.txt: work around pip 1.4 issue

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoOops, wrong version of previous commit forgot a space
Josh Durgin [Wed, 24 Jul 2013 18:10:36 +0000 (11:10 -0700)]
Oops, wrong version of previous commit forgot a space

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agoFix package detection on centos in bootstrap
Josh Durgin [Wed, 10 Jul 2013 01:15:25 +0000 (18:15 -0700)]
Fix package detection on centos in bootstrap

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agoMerge pull request #7 from wyllys66/issue6
Yehuda Sadeh [Mon, 3 Jun 2013 19:18:05 +0000 (12:18 -0700)]
Merge pull request #7 from wyllys66/issue6

Fixed contentlength_negative tests to ignore the error_code

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoFixed contentlength_negative tests to ignore the error_code 7/head
Wyllys Ingersoll [Mon, 3 Jun 2013 19:07:21 +0000 (15:07 -0400)]
Fixed contentlength_negative tests to ignore the error_code

13 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Tue, 7 May 2013 04:36:43 +0000 (21:36 -0700)]
Merge remote-tracking branch 'gh/next'

13 years agoMerge pull request #5 from ceph/wip-migrate-test1
Yehuda Sadeh [Fri, 1 Mar 2013 23:54:04 +0000 (15:54 -0800)]
Merge pull request #5 from ceph/wip-migrate-test1

generate_objects: use rewind=True in upload_objects

13 years agogenerate_objects: use rewind=True in upload_objects 5/head
Matthew Wodrich [Thu, 28 Feb 2013 04:02:25 +0000 (20:02 -0800)]
generate_objects: use rewind=True in upload_objects

Use the rewind=True argument when uploading objects to make
realistic.py's use of upload_objects compatible with boto>=2.4.1, which
will try to seek to the end of the fp if rewind is not True.

13 years agotest_s3: reduce multipart tests sizes
Yehuda Sadeh [Wed, 20 Feb 2013 21:55:35 +0000 (13:55 -0800)]
test_s3: reduce multipart tests sizes

Tests were dominating run time

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>