From 3652cfe2ec5500b37adf7830acc1d957f71b5a9e Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 20 Jan 2023 15:34:47 -0500 Subject: [PATCH] remove tests tagged fails_strict_rfc2616 Signed-off-by: Casey Bodley --- s3tests_boto3/functional/test_s3.py | 48 ----------------------------- 1 file changed, 48 deletions(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 1601809..578255e 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -2241,54 +2241,6 @@ def _set_get_metadata_unreadable(metadata, bucket_name=None): e = assert_raises(ClientError, client.put_object, Bucket=bucket_name, Key='bar', Metadata=metadata_dict) return e -@attr(resource='object.metadata') -@attr(method='put') -@attr(operation='metadata write/re-write') -@attr(assertion='non-UTF-8 values detected, but rejected by webserver') -@attr('fails_strict_rfc2616') -@attr(assertion='fails 400') -def test_object_set_get_non_utf8_metadata(): - metadata = '\x04mymeta' - e = _set_get_metadata_unreadable(metadata) - status, error_code = _get_status_and_error_code(e.response) - eq(status, 400 or 403) - -@attr(resource='object.metadata') -@attr(method='put') -@attr(operation='metadata write') -@attr(assertion='non-printing prefixes rejected by webserver') -@attr('fails_strict_rfc2616') -@attr(assertion='fails 400') -def test_object_set_get_metadata_empty_to_unreadable_prefix(): - metadata = '\x04w' - e = _set_get_metadata_unreadable(metadata) - status, error_code = _get_status_and_error_code(e.response) - eq(status, 400 or 403) - -@attr(resource='object.metadata') -@attr(method='put') -@attr(operation='metadata write') -@attr(assertion='non-printing suffixes rejected by webserver') -@attr('fails_strict_rfc2616') -@attr(assertion='fails 400') -def test_object_set_get_metadata_empty_to_unreadable_suffix(): - metadata = 'h\x04' - e = _set_get_metadata_unreadable(metadata) - status, error_code = _get_status_and_error_code(e.response) - eq(status, 400 or 403) - -@attr(resource='object.metadata') -@attr(method='put') -@attr(operation='metadata write') -@attr(assertion='non-priting in-fixes rejected by webserver') -@attr('fails_strict_rfc2616') -@attr(assertion='fails 400') -def test_object_set_get_metadata_empty_to_unreadable_infix(): - metadata = 'h\x04w' - e = _set_get_metadata_unreadable(metadata) - status, error_code = _get_status_and_error_code(e.response) - eq(status, 400 or 403) - @attr(resource='object') @attr(method='put') @attr(operation='data re-write')