mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
Annotate many tests that fail on AWS (tested on EU region)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
88b6328003
commit
44e51960c6
1 changed files with 30 additions and 0 deletions
|
@ -2886,6 +2886,7 @@ def _test_bucket_create_naming_good_long(length):
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/250 byte name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_good_long_250():
|
||||
_test_bucket_create_naming_good_long(250)
|
||||
|
||||
|
@ -2896,6 +2897,7 @@ def test_bucket_create_naming_good_long_250():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/251 byte name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_good_long_251():
|
||||
_test_bucket_create_naming_good_long(251)
|
||||
|
||||
|
@ -2906,6 +2908,7 @@ def test_bucket_create_naming_good_long_251():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/252 byte name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_good_long_252():
|
||||
_test_bucket_create_naming_good_long(252)
|
||||
|
||||
|
@ -2945,6 +2948,7 @@ def test_bucket_create_naming_good_long_255():
|
|||
@attr(method='get')
|
||||
@attr(operation='list w/251 byte name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_list_long_name():
|
||||
prefix = get_new_bucket_name()
|
||||
length = 251
|
||||
|
@ -2985,6 +2989,7 @@ def test_bucket_create_naming_bad_punctuation():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/underscore in name')
|
||||
@attr(assertion='succeeds')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_dns_underscore():
|
||||
check_good_bucket_name('foo_bar')
|
||||
|
||||
|
@ -2995,6 +3000,7 @@ def test_bucket_create_naming_dns_underscore():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/100 byte name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_dns_long():
|
||||
prefix = get_prefix()
|
||||
assert len(prefix) < 50
|
||||
|
@ -3008,6 +3014,7 @@ def test_bucket_create_naming_dns_long():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/dash at end of name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_dns_dash_at_end():
|
||||
check_good_bucket_name('foo-')
|
||||
|
||||
|
@ -3018,6 +3025,7 @@ def test_bucket_create_naming_dns_dash_at_end():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/.. in name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_dns_dot_dot():
|
||||
check_good_bucket_name('foo..bar')
|
||||
|
||||
|
@ -3028,6 +3036,7 @@ def test_bucket_create_naming_dns_dot_dot():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/.- in name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_dns_dot_dash():
|
||||
check_good_bucket_name('foo.-bar')
|
||||
|
||||
|
@ -3038,6 +3047,7 @@ def test_bucket_create_naming_dns_dot_dash():
|
|||
@attr(method='put')
|
||||
@attr(operation='create w/-. in name')
|
||||
@attr(assertion='fails with subdomain')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>...</Error>
|
||||
def test_bucket_create_naming_dns_dash_dot():
|
||||
check_good_bucket_name('foo-.bar')
|
||||
|
||||
|
@ -3120,6 +3130,7 @@ def test_bucket_acl_default():
|
|||
@attr(method='get')
|
||||
@attr(operation='public-read acl')
|
||||
@attr(assertion='read back expected defaults')
|
||||
@attr('fails_on_aws') # <Error><Code>IllegalLocationConstraintException</Code><Message>The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.</Message>
|
||||
def test_bucket_acl_canned_during_create():
|
||||
name = get_new_bucket_name()
|
||||
bucket = targets.main.default.connection.create_bucket(name, policy = 'public-read')
|
||||
|
@ -3548,6 +3559,7 @@ def test_object_acl_canned_bucketownerfullcontrol():
|
|||
@attr(method='put')
|
||||
@attr(operation='set write-acp')
|
||||
@attr(assertion='does not modify owner')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${ALTUSER}</ArgumentValue>
|
||||
def test_object_acl_full_control_verify_owner():
|
||||
bucket = get_new_bucket(targets.main.default)
|
||||
bucket.set_acl('public-read-write')
|
||||
|
@ -3638,6 +3650,7 @@ def _build_bucket_acl_xml(permission, bucket=None):
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl FULL_CONTROL (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_bucket_acl_xml_fullcontrol():
|
||||
_build_bucket_acl_xml('FULL_CONTROL')
|
||||
|
||||
|
@ -3646,6 +3659,7 @@ def test_bucket_acl_xml_fullcontrol():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl WRITE (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_bucket_acl_xml_write():
|
||||
_build_bucket_acl_xml('WRITE')
|
||||
|
||||
|
@ -3654,6 +3668,7 @@ def test_bucket_acl_xml_write():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl WRITE_ACP (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_bucket_acl_xml_writeacp():
|
||||
_build_bucket_acl_xml('WRITE_ACP')
|
||||
|
||||
|
@ -3662,6 +3677,7 @@ def test_bucket_acl_xml_writeacp():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl READ (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_bucket_acl_xml_read():
|
||||
_build_bucket_acl_xml('READ')
|
||||
|
||||
|
@ -3670,6 +3686,7 @@ def test_bucket_acl_xml_read():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl READ_ACP (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_bucket_acl_xml_readacp():
|
||||
_build_bucket_acl_xml('READ_ACP')
|
||||
|
||||
|
@ -3708,6 +3725,7 @@ def _build_object_acl_xml(permission):
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl FULL_CONTROL (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_object_acl_xml():
|
||||
_build_object_acl_xml('FULL_CONTROL')
|
||||
|
||||
|
@ -3716,6 +3734,7 @@ def test_object_acl_xml():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl WRITE (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_object_acl_xml_write():
|
||||
_build_object_acl_xml('WRITE')
|
||||
|
||||
|
@ -3724,6 +3743,7 @@ def test_object_acl_xml_write():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl WRITE_ACP (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_object_acl_xml_writeacp():
|
||||
_build_object_acl_xml('WRITE_ACP')
|
||||
|
||||
|
@ -3732,6 +3752,7 @@ def test_object_acl_xml_writeacp():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl READ (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_object_acl_xml_read():
|
||||
_build_object_acl_xml('READ')
|
||||
|
||||
|
@ -3740,6 +3761,7 @@ def test_object_acl_xml_read():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl READ_ACP (xml)')
|
||||
@attr(assertion='reads back correctly')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_object_acl_xml_readacp():
|
||||
_build_object_acl_xml('READ_ACP')
|
||||
|
||||
|
@ -3848,6 +3870,7 @@ def _check_bucket_acl_grant_cant_writeacp(bucket):
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl w/userid FULL_CONTROL')
|
||||
@attr(assertion='can read/write data/acls')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${USER}</ArgumentValue>
|
||||
def test_bucket_acl_grant_userid_fullcontrol():
|
||||
bucket = _bucket_acl_grant_userid('FULL_CONTROL')
|
||||
|
||||
|
@ -3871,6 +3894,7 @@ def test_bucket_acl_grant_userid_fullcontrol():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl w/userid READ')
|
||||
@attr(assertion='can read data, no other r/w')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${ALTUSER}</ArgumentValue>
|
||||
def test_bucket_acl_grant_userid_read():
|
||||
bucket = _bucket_acl_grant_userid('READ')
|
||||
|
||||
|
@ -3888,6 +3912,7 @@ def test_bucket_acl_grant_userid_read():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl w/userid READ_ACP')
|
||||
@attr(assertion='can read acl, no other r/w')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${ALTUSER}</ArgumentValue>
|
||||
def test_bucket_acl_grant_userid_readacp():
|
||||
bucket = _bucket_acl_grant_userid('READ_ACP')
|
||||
|
||||
|
@ -3905,6 +3930,7 @@ def test_bucket_acl_grant_userid_readacp():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl w/userid WRITE')
|
||||
@attr(assertion='can write data, no other r/w')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${ALTUSER}</ArgumentValue>
|
||||
def test_bucket_acl_grant_userid_write():
|
||||
bucket = _bucket_acl_grant_userid('WRITE')
|
||||
|
||||
|
@ -3922,6 +3948,7 @@ def test_bucket_acl_grant_userid_write():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='set acl w/userid WRITE_ACP')
|
||||
@attr(assertion='can write acls, no other r/w')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${ALTUSER}</ArgumentValue>
|
||||
def test_bucket_acl_grant_userid_writeacp():
|
||||
bucket = _bucket_acl_grant_userid('WRITE_ACP')
|
||||
|
||||
|
@ -4005,6 +4032,7 @@ def _get_acl_header(user=None, perms=None):
|
|||
@attr(operation='add all grants to user through headers')
|
||||
@attr(assertion='adds all grants individually to second user')
|
||||
@attr('fails_on_dho')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${ALTUSER}</ArgumentValue>
|
||||
def test_object_header_acl_grants():
|
||||
bucket = get_new_bucket()
|
||||
headers = _get_acl_header()
|
||||
|
@ -4064,6 +4092,7 @@ def test_object_header_acl_grants():
|
|||
@attr(operation='add all grants to user through headers')
|
||||
@attr(assertion='adds all grants individually to second user')
|
||||
@attr('fails_on_dho')
|
||||
@attr('fails_on_aws') # <Error><Code>InvalidArgument</Code><Message>Invalid id</Message><ArgumentName>CanonicalUser/ID</ArgumentName><ArgumentValue>${ALTUSER}</ArgumentValue>
|
||||
def test_bucket_header_acl_grants():
|
||||
headers = _get_acl_header()
|
||||
bucket = get_new_bucket(targets.main.default, get_prefix(), headers)
|
||||
|
@ -4128,6 +4157,7 @@ def test_bucket_header_acl_grants():
|
|||
@attr(method='ACLs')
|
||||
@attr(operation='add second FULL_CONTROL user')
|
||||
@attr(assertion='works for S3, fails for DHO')
|
||||
@attr('fails_on_aws') # <Error><Code>AmbiguousGrantByEmailAddress</Code><Message>The e-mail address you provided is associated with more than one account. Please retry your request using a different identification method or after resolving the ambiguity.</Message>
|
||||
def test_bucket_acl_grant_email():
|
||||
bucket = get_new_bucket()
|
||||
# add alt user
|
||||
|
|
Loading…
Reference in a new issue