]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
11 years agoUse unique name in starts with nonalpha test 36/head
Andrew Gaul [Tue, 6 Jan 2015 21:41:56 +0000 (13:41 -0800)]
Use unique name in starts with nonalpha test

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 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

11 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

11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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

12 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'

12 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

12 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.

12 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>
12 years agotest_s3: test multi-part uploads using boto provided functionality.
caleb miles [Wed, 31 Oct 2012 19:32:03 +0000 (15:32 -0400)]
test_s3: test multi-part uploads using boto provided functionality.

Tests the implementation of multi-part upload and verifies written
object.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
12 years agotest_s3: Add test of ACL grants through HTTP headers.
caleb miles [Thu, 7 Feb 2013 20:58:32 +0000 (15:58 -0500)]
test_s3: Add test of ACL grants through HTTP headers.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
12 years agotest_s3: fix test_list_multipart_upload
Yehuda Sadeh [Wed, 20 Feb 2013 01:58:54 +0000 (17:58 -0800)]
test_s3: fix test_list_multipart_upload

test wasn't really testing what it should have

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: Add tests for additional canned acl support.
caleb miles [Fri, 1 Feb 2013 21:01:31 +0000 (16:01 -0500)]
test_s3: Add tests for additional canned acl support.

Corresponds to tracker issue 3667.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
13 years agotest_s3: check stats correct after multipart upload
Yehuda Sadeh [Wed, 6 Feb 2013 18:31:19 +0000 (10:31 -0800)]
test_s3: check stats correct after multipart upload

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorequirements.txt: change requests package requirement
Yehuda Sadeh [Tue, 29 Jan 2013 21:04:43 +0000 (13:04 -0800)]
requirements.txt: change requests package requirement

Specifying a specific version number (0.14.0). Newer version (1.1.0)
does not handle POST redirect correctly.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: fix post tests to include tcp port
Yehuda Sadeh [Wed, 23 Jan 2013 18:41:38 +0000 (10:41 -0800)]
rgw: fix post tests to include tcp port

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: remove more fails_on_dho tags
Yehuda Sadeh [Fri, 18 Jan 2013 18:35:31 +0000 (10:35 -0800)]
rgw: remove more fails_on_dho tags

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: remove fails_on_dho tags
Yehuda Sadeh [Fri, 18 Jan 2013 18:23:09 +0000 (10:23 -0800)]
rgw: remove fails_on_dho tags

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: add test_object_copy_canned_acl
Yehuda Sadeh [Wed, 16 Jan 2013 22:39:25 +0000 (14:39 -0800)]
test_s3: add test_object_copy_canned_acl

test copy object with canned acl modification

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: add missing fails_on_dho to post tests
Yehuda Sadeh [Fri, 18 Jan 2013 17:57:01 +0000 (09:57 -0800)]
rgw: add missing fails_on_dho to post tests

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agos3tests: fix post tests
Yehuda Sadeh [Mon, 15 Oct 2012 22:57:42 +0000 (15:57 -0700)]
s3tests: fix post tests

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: Add tests of post object.
caleb miles [Mon, 15 Oct 2012 17:59:10 +0000 (13:59 -0400)]
test_s3: Add tests of post object.

Tests the implementation of browser based uploads via a POST request.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
13 years agotest_s3: Add a test of multi-object delete.
caleb miles [Thu, 9 Aug 2012 22:51:07 +0000 (15:51 -0700)]
test_s3: Add a test of multi-object delete.

Tests the implementation of the multi-object delete function call.

Signed-off-by: caleb miles <caleb.miles@inktank.com>
13 years agotest_s3: add a test for response header modification
Yehuda Sadeh [Fri, 6 Jul 2012 22:17:18 +0000 (15:17 -0700)]
test_s3: add a test for response header modification

Testing response header fields modification by specified params.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: remove extra code block
Yehuda Sadeh [Fri, 6 Jul 2012 21:44:22 +0000 (14:44 -0700)]
test_s3: remove extra code block

Code was duplicated by mistake. Removing it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoAdd strict RFC2616 attributes to metadata tests
Kyle Bader [Tue, 3 Jul 2012 23:28:59 +0000 (16:28 -0700)]
Add strict RFC2616 attributes to metadata tests

Some proxies/load balancers may sanitize input and may remove
headers that are not RFC 2616 complaint. This allows several
tests to be skipped if you are putting one of these products
in front of an S3 compatible API.

13 years agoannotate tests with fails_on_dho
Yehuda Sadeh [Fri, 15 Jun 2012 01:58:17 +0000 (18:58 -0700)]
annotate tests with fails_on_dho

Should be reverted once fixes are pushed to the dho branch.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest two cases in copying object to itself
Yehuda Sadeh [Fri, 15 Jun 2012 00:07:46 +0000 (17:07 -0700)]
test two cases in copying object to itself

 - should fail when not trying to change metadata
 - should succeed when changing metadata; also verify metadata

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoset boto version for 2.4.1
Yehuda Sadeh [Thu, 14 Jun 2012 20:56:45 +0000 (13:56 -0700)]
set boto version for 2.4.1

2.5.x has an issue when a 400 response is returned.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoboto: bump required version to 2.1
Yehuda Sadeh [Wed, 23 May 2012 19:35:56 +0000 (12:35 -0700)]
boto: bump required version to 2.1

We now pass rewind param to key.set_contents_from_file,
which requires >= 2.1

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorealistic.py: update seek() implementation
Yehuda Sadeh [Wed, 16 May 2012 23:34:18 +0000 (16:34 -0700)]
realistic.py: update seek() implementation

seek() requires whence param. Missing it broke readwrite test with
boto 2.4.0.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: key.set_contents_from_file() rewind on dual write
Yehuda Sadeh [Wed, 16 May 2012 20:32:33 +0000 (13:32 -0700)]
test_s3: key.set_contents_from_file() rewind on dual write

This fixes a failure with boto 2.4.0.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agotest_s3: fix FakeFile.seek(): handles whence param
Yehuda Sadeh [Wed, 16 May 2012 20:30:39 +0000 (13:30 -0700)]
test_s3: fix FakeFile.seek(): handles whence param

beforehand we didn't accept the seek() whence param, which
failed with boto 2.4.0.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoadd functional tests for bucket HEAD
Yehuda Sadeh [Thu, 19 Apr 2012 20:33:08 +0000 (13:33 -0700)]
add functional tests for bucket HEAD

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
13 years agofunctional: test that bucket recreation doesn't override index
Yehuda Sadeh [Mon, 2 Apr 2012 21:38:39 +0000 (14:38 -0700)]
functional: test that bucket recreation doesn't override index

This resolves issue #1853.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
13 years agofix atomic_write test, don't resuse same key handle for read and write
Yehuda Sadeh [Wed, 15 Feb 2012 20:45:31 +0000 (12:45 -0800)]
fix atomic_write test, don't resuse same key handle for read and write

13 years agoset fails_on_dho on test_bucket_create_special_key_names
Yehuda Sadeh [Sat, 11 Feb 2012 05:19:23 +0000 (21:19 -0800)]
set fails_on_dho on test_bucket_create_special_key_names