Skip to content

Commit 9dfac7b

Browse files
committed
Try to fix IPv6 test
1 parent 6e1e213 commit 9dfac7b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/plugins_tests/certificate_info/test_certificate_info_plugin.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,14 @@ def test_multiple_certificates(self):
190190
# And multiple certificates were detected
191191
assert len(plugin_result.certificate_deployments) > 1
192192

193+
@can_only_run_on_linux_64
193194
def test_ipv6_server_string(self):
194-
# Given a server to scan for which SSLyze only received an IPv6 address
195195
# Test for https://github.com/nabla-c0d3/sslyze/issues/675
196-
server_location = ServerNetworkLocation("2a00:1450:4007:80d::200e", 443, ip_address="2a00:1450:4007:80d::200e")
197-
server_info = check_connectivity_to_server_and_return_info(server_location)
196+
# Given a server to scan
197+
with ModernOpenSslServer(client_auth_config=ClientAuthConfigEnum.REQUIRED) as server:
198+
# For which SSLyze only received an IPv6 address, no hostname
199+
server_location = ServerNetworkLocation(hostname="::1", port=server.port, ip_address="::1")
200+
server_info = check_connectivity_to_server_and_return_info(server_location)
198201

199202
# When running the scan, it succeeds
200203
plugin_result = CertificateInfoImplementation.scan_server(server_info)

0 commit comments

Comments
 (0)