Skip to content

Commit c07e7f1

Browse files
committed
Fix TLS tests by enforcing tlsmode=require and defining CA_cert
1 parent ab2ef43 commit c07e7f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vertica_python/tests/integration_tests/test_tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ def test_tls13_support_auto_negotiation(self):
328328
ssl_context.load_verify_locations(cadata=CA_cert)
329329

330330
self._conn_info['ssl'] = ssl_context
331+
self._conn_info['tlsmode'] = 'require'
331332

332333
with self._connect() as conn:
333334
# First ensure TLS really got enabled on server
@@ -360,7 +361,6 @@ def test_sslcontext_mutual_TLS(self):
360361
ssl_context.load_cert_chain(certfile=self.client_cert.name, keyfile=self.client_key.name)
361362

362363
self._conn_info['ssl'] = ssl_context
363-
self._conn_info['tlsmode'] = 'require'
364364
with self._connect() as conn:
365365
cur = conn.cursor()
366366
res = self._query_and_fetchone(self.SSL_STATE_SQL)

0 commit comments

Comments
 (0)