Skip to content

Commit 3ea4de7

Browse files
committed
fix test pt3
1 parent 67c6738 commit 3ea4de7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/asynchronous/test_encryption.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def test_init_kms_tls_options(self):
207207
"k.d",
208208
kms_tls_options={"kmip": {"tls": True}, "aws": {}},
209209
)
210+
opts._parse_kms_tls_options(_IS_SYNC)
210211
ctx = opts._kms_ssl_contexts["kmip"]
211212
self.assertEqual(ctx.check_hostname, True)
212213
self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
@@ -218,6 +219,7 @@ def test_init_kms_tls_options(self):
218219
"k.d",
219220
kms_tls_options={"kmip": {"tlsCAFile": CA_PEM, "tlsCertificateKeyFile": CLIENT_PEM}},
220221
)
222+
opts._parse_kms_tls_options(_IS_SYNC)
221223
ctx = opts._kms_ssl_contexts["kmip"]
222224
self.assertEqual(ctx.check_hostname, True)
223225
self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)

test/test_encryption.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def test_init_kms_tls_options(self):
207207
"k.d",
208208
kms_tls_options={"kmip": {"tls": True}, "aws": {}},
209209
)
210+
opts._parse_kms_tls_options(_IS_SYNC)
210211
ctx = opts._kms_ssl_contexts["kmip"]
211212
self.assertEqual(ctx.check_hostname, True)
212213
self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)
@@ -218,6 +219,7 @@ def test_init_kms_tls_options(self):
218219
"k.d",
219220
kms_tls_options={"kmip": {"tlsCAFile": CA_PEM, "tlsCertificateKeyFile": CLIENT_PEM}},
220221
)
222+
opts._parse_kms_tls_options(_IS_SYNC)
221223
ctx = opts._kms_ssl_contexts["kmip"]
222224
self.assertEqual(ctx.check_hostname, True)
223225
self.assertEqual(ctx.verify_mode, ssl.CERT_REQUIRED)

0 commit comments

Comments
 (0)