@@ -257,7 +257,6 @@ def test_ocsp_bad_validity():
257257 del environ ["SF_TEST_OCSP_FORCE_BAD_RESPONSE_VALIDITY" ]
258258
259259
260- @pytest .mark .flaky (reruns = 3 )
261260def test_ocsp_single_endpoint ():
262261 environ ["SF_OCSP_ACTIVATE_NEW_ENDPOINT" ] = "True"
263262 SnowflakeOCSP .clear_cache ()
@@ -281,7 +280,6 @@ def test_ocsp_by_post_method():
281280 assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
282281
283282
284- @pytest .mark .flaky (reruns = 3 )
285283def test_ocsp_with_file_cache (tmpdir ):
286284 """OCSP tests and the cache server and file."""
287285 tmp_dir = str (tmpdir .mkdir ("ocsp_response_cache" ))
@@ -295,7 +293,6 @@ def test_ocsp_with_file_cache(tmpdir):
295293 assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
296294
297295
298- @pytest .mark .flaky (reruns = 3 )
299296@pytest .mark .skipolddriver
300297def test_ocsp_with_bogus_cache_files (tmpdir , random_ocsp_response_validation_cache ):
301298 with mock .patch (
@@ -335,7 +332,6 @@ def test_ocsp_with_bogus_cache_files(tmpdir, random_ocsp_response_validation_cac
335332 )
336333
337334
338- @pytest .mark .flaky (reruns = 3 )
339335@pytest .mark .skipolddriver
340336def test_ocsp_with_outdated_cache (tmpdir , random_ocsp_response_validation_cache ):
341337 with mock .patch (
@@ -396,7 +392,6 @@ def _store_cache_in_file(tmpdir, target_hosts=None):
396392 return filename , target_hosts
397393
398394
399- @pytest .mark .flaky (reruns = 3 )
400395def test_ocsp_with_invalid_cache_file ():
401396 """OCSP tests with an invalid cache file."""
402397 SnowflakeOCSP .clear_cache () # reset the memory cache
@@ -406,7 +401,6 @@ def test_ocsp_with_invalid_cache_file():
406401 assert ocsp .validate (url , connection ), f"Failed to validate: { url } "
407402
408403
409- @pytest .mark .flaky (reruns = 3 )
410404@mock .patch (
411405 "snowflake.connector.ocsp_snowflake.SnowflakeOCSP._fetch_ocsp_response" ,
412406 side_effect = BrokenPipeError ("fake error" ),
@@ -429,7 +423,6 @@ def test_ocsp_cache_when_server_is_down(
429423 assert not cache_data , "no cache should present because of broken pipe"
430424
431425
432- @pytest .mark .flaky (reruns = 3 )
433426def test_concurrent_ocsp_requests (tmpdir ):
434427 """Run OCSP revocation checks in parallel. The memory and file caches are deleted randomly."""
435428 cache_file_name = path .join (str (tmpdir ), "cache_file.txt" )
@@ -474,7 +467,6 @@ def test_ocsp_revoked_certificate():
474467 assert ex .value .errno == ex .value .errno == ER_OCSP_RESPONSE_CERT_STATUS_REVOKED
475468
476469
477- @pytest .mark .flaky (reruns = 3 )
478470def test_ocsp_incomplete_chain ():
479471 """Tests incomplete chained certificate."""
480472 incomplete_chain_cert = path .join (
0 commit comments