Skip to content

Commit 31843ca

Browse files
committed
Add fails_on_posix mark
Signed-off-by: Samarah Uriarte <samarah.uriarte@ibm.com>
1 parent cfb361a commit 31843ca

File tree

4 files changed

+386
-0
lines changed

4 files changed

+386
-0
lines changed

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ markers =
1818
encryption
1919
fails_on_aws
2020
fails_on_dbstore
21+
fails_on_posix
2122
fails_on_dho
2223
fails_on_mod_proxy_fcgi
2324
fails_on_rgw

s3tests/functional/test_s3.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def check_configure_versioning_retry(bucket, status, expected_string):
124124

125125
@pytest.mark.versioning
126126
@pytest.mark.fails_on_dbstore
127+
@pytest.mark.fails_on_posix
127128
def test_versioning_obj_read_not_exist_null():
128129
bucket = get_new_bucket()
129130
check_versioning(bucket, None)
@@ -143,6 +144,7 @@ def test_versioning_obj_read_not_exist_null():
143144
@pytest.mark.fails_with_subdomain
144145
@pytest.mark.appendobject
145146
@pytest.mark.fails_on_dbstore
147+
@pytest.mark.fails_on_posix
146148
def test_append_object():
147149
bucket = get_new_bucket()
148150
key = bucket.new_key('foo')
@@ -164,6 +166,7 @@ def test_append_object():
164166
@pytest.mark.fails_with_subdomain
165167
@pytest.mark.appendobject
166168
@pytest.mark.fails_on_dbstore
169+
@pytest.mark.fails_on_posix
167170
def test_append_normal_object():
168171
bucket = get_new_bucket()
169172
key = bucket.new_key('foo')
@@ -181,6 +184,7 @@ def test_append_normal_object():
181184
@pytest.mark.fails_with_subdomain
182185
@pytest.mark.appendobject
183186
@pytest.mark.fails_on_dbstore
187+
@pytest.mark.fails_on_posix
184188
def test_append_object_position_wrong():
185189
bucket = get_new_bucket()
186190
key = bucket.new_key('foo')
@@ -625,6 +629,7 @@ def _multipart_upload_enc(bucket, s3_key_name, size, part_size=5*1024*1024,
625629

626630
@pytest.mark.encryption
627631
@pytest.mark.fails_on_dbstore
632+
@pytest.mark.fails_on_posix
628633
def test_encryption_sse_c_multipart_invalid_chunks_1():
629634
bucket = get_new_bucket()
630635
key = "multipart_enc"
@@ -649,6 +654,7 @@ def test_encryption_sse_c_multipart_invalid_chunks_1():
649654

650655
@pytest.mark.encryption
651656
@pytest.mark.fails_on_dbstore
657+
@pytest.mark.fails_on_posix
652658
def test_encryption_sse_c_multipart_invalid_chunks_2():
653659
bucket = get_new_bucket()
654660
key = "multipart_enc"

s3tests_boto3/functional/test_iam.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ def test_allow_object_actions_in_user_policy():
564564
@pytest.mark.user_policy
565565
@pytest.mark.iam_tenant
566566
@pytest.mark.fails_on_dbstore
567+
@pytest.mark.fails_on_posix
567568
def test_deny_object_actions_in_user_policy():
568569
client = get_iam_client()
569570
s3_client_alt = get_alt_client()
@@ -603,6 +604,7 @@ def test_deny_object_actions_in_user_policy():
603604

604605
@pytest.mark.user_policy
605606
@pytest.mark.iam_tenant
607+
@pytest.mark.fails_on_posix
606608
def test_allow_multipart_actions_in_user_policy():
607609
client = get_iam_client()
608610
s3_client_alt = get_alt_client()
@@ -639,6 +641,7 @@ def test_allow_multipart_actions_in_user_policy():
639641
@pytest.mark.user_policy
640642
@pytest.mark.iam_tenant
641643
@pytest.mark.fails_on_dbstore
644+
@pytest.mark.fails_on_posix
642645
def test_deny_multipart_actions_in_user_policy():
643646
client = get_iam_client()
644647
s3_client = get_alt_client()
@@ -682,6 +685,7 @@ def test_deny_multipart_actions_in_user_policy():
682685
@pytest.mark.user_policy
683686
@pytest.mark.iam_tenant
684687
@pytest.mark.fails_on_dbstore
688+
@pytest.mark.fails_on_posix
685689
def test_allow_tagging_actions_in_user_policy():
686690
client = get_iam_client()
687691
s3_client_alt = get_alt_client()
@@ -728,6 +732,7 @@ def test_allow_tagging_actions_in_user_policy():
728732
@pytest.mark.user_policy
729733
@pytest.mark.iam_tenant
730734
@pytest.mark.fails_on_dbstore
735+
@pytest.mark.fails_on_posix
731736
def test_deny_tagging_actions_in_user_policy():
732737
client = get_iam_client()
733738
s3_client = get_alt_client()
@@ -780,6 +785,7 @@ def test_deny_tagging_actions_in_user_policy():
780785
@pytest.mark.user_policy
781786
@pytest.mark.iam_tenant
782787
@pytest.mark.fails_on_dbstore
788+
@pytest.mark.fails_on_posix
783789
def test_verify_conflicting_user_policy_statements():
784790
s3client = get_alt_client()
785791
bucket = get_new_bucket(client=s3client)
@@ -812,6 +818,7 @@ def test_verify_conflicting_user_policy_statements():
812818
@pytest.mark.user_policy
813819
@pytest.mark.iam_tenant
814820
@pytest.mark.fails_on_dbstore
821+
@pytest.mark.fails_on_posix
815822
def test_verify_conflicting_user_policies():
816823
s3client = get_alt_client()
817824
bucket = get_new_bucket(client=s3client)
@@ -850,6 +857,7 @@ def test_verify_conflicting_user_policies():
850857

851858
@pytest.mark.user_policy
852859
@pytest.mark.iam_tenant
860+
@pytest.mark.fails_on_posix
853861
def test_verify_allow_iam_actions():
854862
policy1 = json.dumps(
855863
{"Version": "2012-10-17",
@@ -2485,6 +2493,7 @@ def test_verify_add_new_client_id_to_oidc(iam_root):
24852493
)
24862494
assert del_response['ResponseMetadata']['HTTPStatusCode'] == 200
24872495

2496+
@pytest.mark.fails_on_posix
24882497
def test_verify_add_existing_client_id_to_oidc(iam_root):
24892498
url_host = get_iam_path_prefix()[1:] + 'example.com'
24902499
url = 'http://' + url_host
@@ -2565,6 +2574,7 @@ def test_verify_remove_client_id_from_oidc(iam_root):
25652574
)
25662575
assert del_response['ResponseMetadata']['HTTPStatusCode'] == 200
25672576

2577+
@pytest.mark.fails_on_posix
25682578
def test_verify_update_thumbprintlist_of_oidc(iam_root):
25692579
url_host = get_iam_path_prefix()[1:] + 'example.com'
25702580
url = 'http://' + url_host

0 commit comments

Comments
 (0)