Skip to content

Commit 2ca27b2

Browse files
committed
disable endpoint verification to unbreak tests using docker
1 parent 6ae62d8 commit 2ca27b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_kafka_integration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ def __init__(self):
451451
self.auth = adc.auth.SASLAuth(
452452
user="test", password="test-pass",
453453
ssl_ca_location=self.certfile.name,
454+
# disable endpoint verification because the docker service generates a certificate with
455+
# a useless subject (the container ID) which can never match the hostname used to
456+
# connect (typically 0.0.0.0)
457+
ssl_endpoint_identification_algorithm="none",
454458
)
455459

456460
def poll_for_kafka_broker_address(self, maxiter=20, sleep=timedelta(milliseconds=500)):

0 commit comments

Comments
 (0)