@@ -261,7 +261,6 @@ def test_ocsp_bad_validity():
261
261
del environ ["SF_TEST_OCSP_FORCE_BAD_RESPONSE_VALIDITY" ]
262
262
263
263
264
- @pytest .mark .flaky (reruns = 3 )
265
264
def test_ocsp_single_endpoint ():
266
265
environ ["SF_OCSP_ACTIVATE_NEW_ENDPOINT" ] = "True"
267
266
SnowflakeOCSP .clear_cache ()
@@ -285,7 +284,6 @@ def test_ocsp_by_post_method():
285
284
assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
286
285
287
286
288
- @pytest .mark .flaky (reruns = 3 )
289
287
def test_ocsp_with_file_cache (tmpdir ):
290
288
"""OCSP tests and the cache server and file."""
291
289
tmp_dir = str (tmpdir .mkdir ("ocsp_response_cache" ))
@@ -299,7 +297,6 @@ def test_ocsp_with_file_cache(tmpdir):
299
297
assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
300
298
301
299
302
- @pytest .mark .flaky (reruns = 3 )
303
300
@pytest .mark .skipolddriver
304
301
def test_ocsp_with_bogus_cache_files (tmpdir , random_ocsp_response_validation_cache ):
305
302
with mock .patch (
@@ -339,7 +336,6 @@ def test_ocsp_with_bogus_cache_files(tmpdir, random_ocsp_response_validation_cac
339
336
)
340
337
341
338
342
- @pytest .mark .flaky (reruns = 3 )
343
339
@pytest .mark .skipolddriver
344
340
def test_ocsp_with_outdated_cache (tmpdir , random_ocsp_response_validation_cache ):
345
341
with mock .patch (
@@ -400,7 +396,6 @@ def _store_cache_in_file(tmpdir, target_hosts=None):
400
396
return filename , target_hosts
401
397
402
398
403
- @pytest .mark .flaky (reruns = 3 )
404
399
def test_ocsp_with_invalid_cache_file ():
405
400
"""OCSP tests with an invalid cache file."""
406
401
SnowflakeOCSP .clear_cache () # reset the memory cache
@@ -410,7 +405,6 @@ def test_ocsp_with_invalid_cache_file():
410
405
assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
411
406
412
407
413
- @pytest .mark .flaky (reruns = 3 )
414
408
@mock .patch (
415
409
"snowflake.connector.ocsp_snowflake.SnowflakeOCSP._fetch_ocsp_response" ,
416
410
side_effect = BrokenPipeError ("fake error" ),
@@ -433,7 +427,6 @@ def test_ocsp_cache_when_server_is_down(
433
427
assert not cache_data , "no cache should present because of broken pipe"
434
428
435
429
436
- @pytest .mark .flaky (reruns = 3 )
437
430
def test_concurrent_ocsp_requests (tmpdir ):
438
431
"""Run OCSP revocation checks in parallel. The memory and file caches are deleted randomly."""
439
432
cache_file_name = path .join (str (tmpdir ), "cache_file.txt" )
@@ -478,7 +471,6 @@ def test_ocsp_revoked_certificate():
478
471
assert ex .value .errno == ex .value .errno == ER_OCSP_RESPONSE_CERT_STATUS_REVOKED
479
472
480
473
481
- @pytest .mark .flaky (reruns = 3 )
482
474
def test_ocsp_incomplete_chain ():
483
475
"""Tests incomplete chained certificate."""
484
476
incomplete_chain_cert = path .join (
0 commit comments