@@ -342,7 +342,6 @@ def test_ocsp_bad_validity():
342
342
del environ ["SF_TEST_OCSP_FORCE_BAD_RESPONSE_VALIDITY" ]
343
343
344
344
345
- @pytest .mark .flaky (reruns = 3 )
346
345
def test_ocsp_single_endpoint ():
347
346
environ ["SF_OCSP_ACTIVATE_NEW_ENDPOINT" ] = "True"
348
347
SnowflakeOCSP .clear_cache ()
@@ -366,7 +365,6 @@ def test_ocsp_by_post_method():
366
365
assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
367
366
368
367
369
- @pytest .mark .flaky (reruns = 3 )
370
368
def test_ocsp_with_file_cache (tmpdir ):
371
369
"""OCSP tests and the cache server and file."""
372
370
tmp_dir = str (tmpdir .mkdir ("ocsp_response_cache" ))
@@ -380,7 +378,6 @@ def test_ocsp_with_file_cache(tmpdir):
380
378
assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
381
379
382
380
383
- @pytest .mark .flaky (reruns = 3 )
384
381
@pytest .mark .skipolddriver
385
382
def test_ocsp_with_bogus_cache_files (tmpdir , random_ocsp_response_validation_cache ):
386
383
with mock .patch (
@@ -420,7 +417,6 @@ def test_ocsp_with_bogus_cache_files(tmpdir, random_ocsp_response_validation_cac
420
417
)
421
418
422
419
423
- @pytest .mark .flaky (reruns = 3 )
424
420
@pytest .mark .skipolddriver
425
421
def test_ocsp_with_outdated_cache (tmpdir , random_ocsp_response_validation_cache ):
426
422
with mock .patch (
@@ -481,7 +477,6 @@ def _store_cache_in_file(tmpdir, target_hosts=None):
481
477
return filename , target_hosts
482
478
483
479
484
- @pytest .mark .flaky (reruns = 3 )
485
480
def test_ocsp_with_invalid_cache_file ():
486
481
"""OCSP tests with an invalid cache file."""
487
482
SnowflakeOCSP .clear_cache () # reset the memory cache
@@ -533,7 +528,6 @@ def test_ocsp_cache_when_server_is_down(tmpdir):
533
528
), "OCSP validation should succeed with fail-open when server is down"
534
529
535
530
536
- @pytest .mark .flaky (reruns = 3 )
537
531
def test_concurrent_ocsp_requests (tmpdir ):
538
532
"""Run OCSP revocation checks in parallel. The memory and file caches are deleted randomly."""
539
533
cache_file_name = path .join (str (tmpdir ), "cache_file.txt" )
@@ -578,7 +572,6 @@ def test_ocsp_revoked_certificate():
578
572
assert ex .value .errno == ex .value .errno == ER_OCSP_RESPONSE_CERT_STATUS_REVOKED
579
573
580
574
581
- @pytest .mark .flaky (reruns = 3 )
582
575
def test_ocsp_incomplete_chain ():
583
576
"""Tests incomplete chained certificate."""
584
577
incomplete_chain_cert = path .join (
0 commit comments