Skip to content

Commit

Permalink
Skip tests which fail with S3Proxy
Browse files Browse the repository at this point in the history
improper headers:

    test_object_create_bad_md5_unreadable
    test_object_create_bad_md5_none
    test_object_create_bad_expect_mismatch
    test_object_create_bad_expect_empty
    test_object_create_bad_expect_unreadable
    test_object_create_bad_contentlength_empty
    test_object_create_bad_contentlength_unreadable
    test_object_create_bad_contenttype_unreadable
    test_object_create_bad_ua_empty
    test_object_create_bad_ua_unreadable
    test_object_create_bad_authorization_unreadable
    test_object_create_bad_date_unreadable
    test_bucket_create_contentlength_none
    test_object_acl_create_contentlength_none
    test_bucket_create_bad_expect_mismatch
    test_bucket_create_bad_expect_empty
    test_bucket_create_bad_contentlength_empty
    test_bucket_create_bad_contentlength_none
    test_bucket_create_bad_contentlength_unreadable
    test_bucket_create_bad_ua_empty
    test_bucket_create_bad_ua_unreadable
    test_bucket_create_bad_authorization_unreadable
    test_bucket_create_bad_date_unreadable
    test_bucket_list_delimiter_unreadable
    test_bucket_list_prefix_unreadable
    test_bucket_list_maxkeys_unreadable
    test_bucket_list_marker_unreadable
    test_object_create_unreadable
    test_object_set_get_non_utf8_metadata
    test_object_set_get_metadata_empty_to_unreadable_prefix
    test_object_set_get_metadata_empty_to_unreadable_suffix
    test_object_set_get_metadata_empty_to_unreadable_infix
    test_object_set_get_metadata_overwrite_to_unreadable_prefix
    test_object_set_get_metadata_overwrite_to_unreadable_suffix
    test_object_set_get_metadata_overwrite_to_unreadable_infix

alternate delimiters:

    test_bucket_list_delimiter_alt
    test_bucket_list_prefix_alt
    test_bucket_list_prefix_delimiter_alt

post uploads:

    test_post_object_anonymous_request
    test_post_object_authenticated_request
    test_post_object_set_success_code
    test_post_object_set_invalid_success_code
    test_post_object_upload_larger_than_chunk
    test_post_object_set_key_from_filename
    test_post_object_ignored_header
    test_post_object_case_insensitive_condition_fields
    test_post_object_escaped_field_values
    test_post_object_success_redirect_action
    test_post_object_invalid_signature
    test_post_object_invalid_access_key
    test_post_object_invalid_date_format
    test_post_object_no_key_specified
    test_post_object_missing_signature
    test_post_object_missing_policy_condition
    test_post_object_user_specified_header
    test_post_object_request_missing_policy_specified_field
    test_post_object_condition_is_case_sensitive
    test_post_object_expires_is_case_sensitive
    test_post_object_expired_policy
    test_post_object_invalid_request_field_value
    test_post_object_missing_expires_condition
    test_post_object_missing_conditions_list
    test_post_object_upload_size_limit_exceeded
    test_post_object_missing_content_length_argument
    test_post_object_invalid_content_length_argument
    test_post_object_upload_size_below_minimum

ifmatch:

    test_put_object_ifmatch_good
    test_put_object_ifmatch_failed
    test_put_object_ifmatch_overwrite_existed_good
    test_put_object_ifmatch_nonexisted_failed
    test_put_object_ifnonmatch_good
    test_put_object_ifnonmatch_failed
    test_put_object_ifnonmatch_nonexisted_good
    test_put_object_ifnonmatch_overwrite_existed_failed

raw requests:

    test_object_raw_get
    test_object_raw_get_bucket_gone
    test_object_raw_get_object_gone
    test_object_raw_get_bucket_acl
    test_object_raw_get_object_acl
    test_object_raw_authenticated
    test_object_raw_response_headers
    test_object_raw_authenticated_bucket_acl
    test_object_raw_authenticated_object_acl
    test_object_raw_authenticated_bucket_gone
    test_object_raw_authenticated_object_gone
    test_object_raw_put
    test_object_raw_put_write_access
    test_object_raw_put_authenticated
    test_object_raw_put_authenticated_expired

ACLs:

    test_bucket_put_bad_canned_acl
    test_bucket_create_exists_nonowner
    test_bucket_delete_nonowner
    test_bucket_acl_default
    test_bucket_acl_canned
    test_bucket_acl_canned_publicreadwrite
    test_bucket_acl_canned_authenticatedread
    test_object_acl_default
    test_object_acl_canned
    test_object_acl_canned_publicreadwrite
    test_object_acl_canned_authenticatedread
    test_object_acl_canned_bucketownerread
    test_object_acl_canned_bucketownerfullcontrol
    test_bucket_acl_canned_private_to_private
    test_bucket_acl_xml_fullcontrol
    test_bucket_acl_xml_write
    test_bucket_acl_xml_writeacp
    test_bucket_acl_xml_read
    test_bucket_acl_xml_readacp
    test_object_acl_xml
    test_object_acl_xml_write
    test_object_acl_xml_writeacp
    test_object_acl_xml_read
    test_object_acl_xml_readacp
    test_bucket_acl_grant_userid_fullcontrol
    test_bucket_acl_grant_userid_read
    test_bucket_acl_grant_userid_readacp
    test_bucket_acl_grant_userid_write
    test_bucket_acl_grant_userid_writeacp
    test_bucket_acl_grant_nonexist_user
    test_bucket_acl_no_grants
    test_object_header_acl_grants
    test_bucket_header_acl_grants
    test_bucket_acl_grant_email
    test_bucket_acl_grant_email_notexist
    test_bucket_acl_revoke_all
    test_logging_toggle
    test_access_bucket_private_object_private
    test_access_bucket_private_object_publicread
    test_access_bucket_private_object_publicreadwrite
    test_access_bucket_publicread_object_private
    test_access_bucket_publicread_object_publicread
    test_access_bucket_publicread_object_publicreadwrite
    test_access_bucket_publicreadwrite_object_private
    test_access_bucket_publicreadwrite_object_publicread
    test_access_bucket_publicreadwrite_object_publicreadwrite
    test_object_set_valid_acl
    test_object_giveaway
    test_list_buckets_anonymous
    test_object_copy_canned_acl
    test_bucket_acls_changes_persistent
    test_stress_bucket_acls_changes

multipart upload:

    test_multipart_upload_empty
    test_multipart_upload_small
    test_multipart_upload
    test_multipart_upload_multiple_sizes
    test_multipart_upload_size_too_small
    test_multipart_upload_contents
    test_multipart_upload_overwrite_existing_object
    test_abort_multipart_upload
    test_abort_multipart_upload_not_found
    test_list_multipart_upload

miscellaneous:

    test_object_copy_same_bucket
    test_bucket_create_naming_bad_starts_nonalpha
    test_bucket_create_naming_bad_ip
    test_bucket_get_location
    test_100_continue
    test_set_cors
    test_cors_origin_response
    test_atomic_dual_conditional_write_1mb
  • Loading branch information
gaul committed Jan 23, 2015
1 parent 5d527db commit 7891cb4
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 0 deletions.
20 changes: 20 additions & 0 deletions s3tests/functional/test_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def test_object_create_bad_md5_empty():
eq(e.error_code, 'InvalidDigest')


@attr('fails_on_s3proxy')
@attr(resource='object')
@attr(method='put')
@attr(operation='create w/non-graphics in MD5')
Expand All @@ -242,6 +243,7 @@ def test_object_create_bad_md5_none():

# strangely, amazon doesn't report an error with a non-expect 100 also, our
# error comes back as html, and not xml as I normally expect
@attr('fails_on_s3proxy')
@attr(resource='object')
@attr(method='put')
@attr(operation='create w/Expect 200')
Expand All @@ -255,6 +257,7 @@ def test_object_create_bad_expect_mismatch():

# this is a really long test, and I don't know if it's valid...
# again, accepts this with no troubles
@attr('fails_on_s3proxy')
@attr(resource='object')
@attr(method='put')
@attr(operation='create w/empty expect')
Expand Down Expand Up @@ -282,6 +285,7 @@ def test_object_create_bad_expect_none():
@attr(assertion='garbage, but S3 succeeds!')
@nose.with_setup(teardown=_clear_custom_headers)
@attr('fails_on_rgw')
@attr('fails_on_s3proxy')
def test_object_create_bad_expect_unreadable():
key = _setup_bad_object({'Expect': '\x07'})
key.set_contents_from_string('bar')
Expand All @@ -293,6 +297,7 @@ def test_object_create_bad_expect_unreadable():
@attr(assertion='fails 400')
@nose.with_setup(teardown=_clear_custom_headers)
@attr('fails_on_rgw')
@attr('fails_on_s3proxy')
def test_object_create_bad_contentlength_empty():
key = _setup_bad_object({'Content-Length': ''})

Expand Down Expand Up @@ -328,6 +333,7 @@ def test_object_create_bad_contentlength_none():
eq(e.reason, 'Length Required')
eq(e.error_code,'MissingContentLength')

@attr('fails_on_s3proxy')
@attr(resource='object')
@attr(method='put')
@attr(operation='create w/non-graphic content length')
Expand Down Expand Up @@ -418,6 +424,7 @@ def test_object_create_bad_contenttype_none():
@attr(assertion='fails 403')
@nose.with_setup(teardown=_clear_custom_headers)
@attr('fails_on_rgw')
@attr('fails_on_s3proxy')
def test_object_create_bad_contenttype_unreadable():
key = _setup_bad_object({'Content-Type': '\x08'})

Expand All @@ -437,6 +444,7 @@ def test_object_create_bad_ua_empty():
key.set_contents_from_string('bar')


@attr('fails_on_s3proxy')
@attr(resource='object')
@attr(method='put')
@attr(operation='create w/non-graphic user agent')
Expand Down Expand Up @@ -478,6 +486,7 @@ def test_object_create_bad_authorization_invalid():
@attr(assertion='fails 403')
@nose.with_setup(teardown=_clear_custom_headers)
@attr('fails_on_rgw')
@attr('fails_on_s3proxy')
def test_object_create_bad_authorization_unreadable():
key = _setup_bad_object({'Authorization': '\x07'})

Expand Down Expand Up @@ -558,6 +567,7 @@ def test_object_create_bad_date_empty():
eq(e.error_code, 'AccessDenied')


@attr('fails_on_s3proxy')
@attr(resource='object')
@attr(method='put')
@attr(operation='create w/non-graphic date')
Expand Down Expand Up @@ -651,6 +661,7 @@ def test_bucket_create_contentlength_none():
_add_custom_headers(remove=('Content-Length',))
get_new_bucket()

@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='acls')
@attr(operation='set w/no content length')
Expand All @@ -664,6 +675,7 @@ def test_object_acl_create_contentlength_none():
_add_custom_headers(remove=('Content-Length',))
key.set_acl('public-read')

@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='acls')
@attr(operation='set w/invalid permission')
Expand All @@ -680,6 +692,7 @@ def test_bucket_put_bad_canned_acl():

# strangely, amazon doesn't report an error with a non-expect 100 also, our
# error comes back as html, and not xml as I normally expect
@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='put')
@attr(operation='create w/expect 200')
Expand All @@ -693,6 +706,7 @@ def test_bucket_create_bad_expect_mismatch():

# this is a really long test, and I don't know if it's valid...
# again, accepts this with no troubles
@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='put')
@attr(operation='create w/expect empty')
Expand All @@ -702,6 +716,7 @@ def test_bucket_create_bad_expect_empty():
_add_custom_headers({'Expect': ''})
bucket = get_new_bucket()

@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='put')
@attr(operation='create w/expect nongraphic')
Expand Down Expand Up @@ -734,6 +749,7 @@ def _create_new_connection():
@attr(assertion='fails 400')
@nose.with_setup(teardown=_clear_custom_headers)
@attr('fails_on_rgw')
@attr('fails_on_s3proxy')
def test_bucket_create_bad_contentlength_empty():
_add_custom_headers({'Content-Length': ''})
e = assert_raises(boto.exception.S3ResponseError, get_new_bucket)
Expand Down Expand Up @@ -764,6 +780,7 @@ def test_bucket_create_bad_contentlength_none():
bucket = get_new_bucket()


@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='put')
@attr(operation='create w/non-graphic content length')
Expand All @@ -788,6 +805,7 @@ def test_bucket_create_bad_ua_empty():
bucket = get_new_bucket()


@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='put')
@attr(operation='create w/non-graphic user agent')
Expand Down Expand Up @@ -829,6 +847,7 @@ def test_bucket_create_bad_authorization_invalid():
@attr(assertion='fails 403')
@nose.with_setup(teardown=_clear_custom_headers)
@attr('fails_on_rgw')
@attr('fails_on_s3proxy')
def test_bucket_create_bad_authorization_unreadable():
_add_custom_headers({'Authorization': '\x07'})
e = assert_raises(boto.exception.S3ResponseError, get_new_bucket)
Expand Down Expand Up @@ -894,6 +913,7 @@ def test_bucket_create_bad_date_empty():
eq(e.error_code, 'AccessDenied')


@attr('fails_on_s3proxy')
@attr(resource='bucket')
@attr(method='put')
@attr(operation='create w/non-graphic date')
Expand Down
Loading

0 comments on commit 7891cb4

Please sign in to comment.