@@ -1451,91 +1451,91 @@ async def test_server_session_keep_alive(conn_cnx):
1451
1451
1452
1452
@pytest .mark .skipolddriver
1453
1453
async def test_ocsp_mode_disable_ocsp_checks (conn_cnx , is_public_test , caplog ):
1454
- caplog .set_level (logging .DEBUG , "snowflake.connector.ocsp_snowflake " )
1454
+ caplog .set_level (logging .DEBUG , "snowflake.connector.aio._ocsp_snowflake " )
1455
1455
async with conn_cnx (disable_ocsp_checks = True ) as conn , conn .cursor () as cur :
1456
1456
assert await (await cur .execute ("select 1" )).fetchall () == [(1 ,)]
1457
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1457
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1458
1458
caplog .clear ()
1459
1459
1460
1460
async with conn_cnx () as conn , conn .cursor () as cur :
1461
1461
assert await (await cur .execute ("select 1" )).fetchall () == [(1 ,)]
1462
1462
if is_public_test :
1463
- assert "snowflake.connector.ocsp_snowflake " in caplog .text
1463
+ assert "snowflake.connector.aio._ocsp_snowflake " in caplog .text
1464
1464
assert "This connection does not perform OCSP checks." not in caplog .text
1465
1465
else :
1466
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1466
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1467
1467
1468
1468
1469
1469
@pytest .mark .skipolddriver
1470
1470
async def test_ocsp_mode_insecure_mode (conn_cnx , is_public_test , caplog ):
1471
- caplog .set_level (logging .DEBUG , "snowflake.connector.ocsp_snowflake " )
1471
+ caplog .set_level (logging .DEBUG , "snowflake.connector.aio._ocsp_snowflake " )
1472
1472
async with conn_cnx (insecure_mode = True ) as conn , conn .cursor () as cur :
1473
1473
assert await (await cur .execute ("select 1" )).fetchall () == [(1 ,)]
1474
1474
if is_public_test :
1475
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1475
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1476
1476
assert "This connection does not perform OCSP checks." in caplog .text
1477
1477
else :
1478
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1478
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1479
1479
1480
1480
1481
1481
@pytest .mark .skipolddriver
1482
1482
async def test_ocsp_mode_insecure_mode_and_disable_ocsp_checks_match (
1483
1483
conn_cnx , is_public_test , caplog
1484
1484
):
1485
- caplog .set_level (logging .DEBUG , "snowflake.connector.ocsp_snowflake " )
1485
+ caplog .set_level (logging .DEBUG , "snowflake.connector.aio._ocsp_snowflake " )
1486
1486
async with conn_cnx (
1487
1487
insecure_mode = True , disable_ocsp_checks = True
1488
1488
) as conn , conn .cursor () as cur :
1489
1489
assert await (await cur .execute ("select 1" )).fetchall () == [(1 ,)]
1490
1490
if is_public_test :
1491
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1491
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1492
1492
assert (
1493
1493
"The values for 'disable_ocsp_checks' and 'insecure_mode' differ. "
1494
1494
"Using the value of 'disable_ocsp_checks."
1495
1495
) not in caplog .text
1496
1496
assert "This connection does not perform OCSP checks." in caplog .text
1497
1497
else :
1498
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1498
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1499
1499
1500
1500
1501
1501
@pytest .mark .skipolddriver
1502
1502
async def test_ocsp_mode_insecure_mode_and_disable_ocsp_checks_mismatch_ocsp_disabled (
1503
1503
conn_cnx , is_public_test , caplog
1504
1504
):
1505
- caplog .set_level (logging .DEBUG , "snowflake.connector.ocsp_snowflake " )
1505
+ caplog .set_level (logging .DEBUG , "snowflake.connector.aio._ocsp_snowflake " )
1506
1506
async with conn_cnx (
1507
1507
insecure_mode = False , disable_ocsp_checks = True
1508
1508
) as conn , conn .cursor () as cur :
1509
1509
assert await (await cur .execute ("select 1" )).fetchall () == [(1 ,)]
1510
1510
if is_public_test :
1511
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1511
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1512
1512
assert (
1513
1513
"The values for 'disable_ocsp_checks' and 'insecure_mode' differ. "
1514
1514
"Using the value of 'disable_ocsp_checks."
1515
1515
) in caplog .text
1516
1516
assert "This connection does not perform OCSP checks." in caplog .text
1517
1517
else :
1518
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1518
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1519
1519
1520
1520
1521
1521
@pytest .mark .skipolddriver
1522
1522
async def test_ocsp_mode_insecure_mode_and_disable_ocsp_checks_mismatch_ocsp_enabled (
1523
1523
conn_cnx , is_public_test , caplog
1524
1524
):
1525
- caplog .set_level (logging .DEBUG , "snowflake.connector.ocsp_snowflake " )
1525
+ caplog .set_level (logging .DEBUG , "snowflake.connector.aio._ocsp_snowflake " )
1526
1526
async with conn_cnx (
1527
1527
insecure_mode = True , disable_ocsp_checks = False
1528
1528
) as conn , conn .cursor () as cur :
1529
1529
assert await (await cur .execute ("select 1" )).fetchall () == [(1 ,)]
1530
1530
if is_public_test :
1531
- assert "snowflake.connector.ocsp_snowflake " in caplog .text
1531
+ assert "snowflake.connector.aio._ocsp_snowflake " in caplog .text
1532
1532
assert (
1533
1533
"The values for 'disable_ocsp_checks' and 'insecure_mode' differ. "
1534
1534
"Using the value of 'disable_ocsp_checks."
1535
1535
) in caplog .text
1536
1536
assert "This connection does not perform OCSP checks." not in caplog .text
1537
1537
else :
1538
- assert "snowflake.connector.ocsp_snowflake " not in caplog .text
1538
+ assert "snowflake.connector.aio._ocsp_snowflake " not in caplog .text
1539
1539
1540
1540
1541
1541
@pytest .mark .skipolddriver
0 commit comments