Skip to content

Commit 8232f26

Browse files
committed
Address rhel error
1 parent 4f007c6 commit 8232f26

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

test/asynchronous/test_encryption.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,8 @@ async def test_01_aws(self):
21632163
# 127.0.0.1:9001: ('Certificate does not contain any `subjectAltName`s.',)
21642164
key["endpoint"] = "127.0.0.1:9001"
21652165
with self.assertRaisesRegex(
2166-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2166+
EncryptionError,
2167+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
21672168
):
21682169
await self.client_encryption_invalid_hostname.create_data_key("aws", key)
21692170

@@ -2180,7 +2181,8 @@ async def test_02_azure(self):
21802181
await self.client_encryption_expired.create_data_key("azure", key)
21812182
# Invalid cert hostname error.
21822183
with self.assertRaisesRegex(
2183-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2184+
EncryptionError,
2185+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
21842186
):
21852187
await self.client_encryption_invalid_hostname.create_data_key("azure", key)
21862188

@@ -2197,7 +2199,8 @@ async def test_03_gcp(self):
21972199
await self.client_encryption_expired.create_data_key("gcp", key)
21982200
# Invalid cert hostname error.
21992201
with self.assertRaisesRegex(
2200-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2202+
EncryptionError,
2203+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
22012204
):
22022205
await self.client_encryption_invalid_hostname.create_data_key("gcp", key)
22032206

@@ -2211,7 +2214,8 @@ async def test_04_kmip(self):
22112214
await self.client_encryption_expired.create_data_key("kmip")
22122215
# Invalid cert hostname error.
22132216
with self.assertRaisesRegex(
2214-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2217+
EncryptionError,
2218+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
22152219
):
22162220
await self.client_encryption_invalid_hostname.create_data_key("kmip")
22172221

test/test_encryption.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,8 @@ def test_01_aws(self):
21552155
# 127.0.0.1:9001: ('Certificate does not contain any `subjectAltName`s.',)
21562156
key["endpoint"] = "127.0.0.1:9001"
21572157
with self.assertRaisesRegex(
2158-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2158+
EncryptionError,
2159+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
21592160
):
21602161
self.client_encryption_invalid_hostname.create_data_key("aws", key)
21612162

@@ -2172,7 +2173,8 @@ def test_02_azure(self):
21722173
self.client_encryption_expired.create_data_key("azure", key)
21732174
# Invalid cert hostname error.
21742175
with self.assertRaisesRegex(
2175-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2176+
EncryptionError,
2177+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
21762178
):
21772179
self.client_encryption_invalid_hostname.create_data_key("azure", key)
21782180

@@ -2189,7 +2191,8 @@ def test_03_gcp(self):
21892191
self.client_encryption_expired.create_data_key("gcp", key)
21902192
# Invalid cert hostname error.
21912193
with self.assertRaisesRegex(
2192-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2194+
EncryptionError,
2195+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
21932196
):
21942197
self.client_encryption_invalid_hostname.create_data_key("gcp", key)
21952198

@@ -2203,7 +2206,8 @@ def test_04_kmip(self):
22032206
self.client_encryption_expired.create_data_key("kmip")
22042207
# Invalid cert hostname error.
22052208
with self.assertRaisesRegex(
2206-
EncryptionError, "IP address mismatch|wronghost|IPAddressMismatch|Certificate"
2209+
EncryptionError,
2210+
"IP address mismatch|wronghost|IPAddressMismatch|Certificate|SSL handshake failed",
22072211
):
22082212
self.client_encryption_invalid_hostname.create_data_key("kmip")
22092213

0 commit comments

Comments
 (0)