Skip to content

Commit

Permalink
Clarify missing results
Browse files Browse the repository at this point in the history
  • Loading branch information
nabla-c0d3 committed Feb 21, 2021
1 parent 76c93f9 commit 6255c8c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/web_servers/scan_localhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ def main(server_software_running_on_localhost: WebServerSoftwareEnum) -> None:
else:
raise ValueError(f"Unexpected value: {server_software_running_on_localhost}")

if server_scan_result.scan_commands_results.keys() != expected_scan_command_results:
raise RuntimeError("SSLyze did not complete all the expected scan commands.")
completed_scan_command_results = server_scan_result.scan_commands_results.keys()
if completed_scan_command_results != expected_scan_command_results:
raise RuntimeError(
f"SSLyze did not complete all the expected scan commands: {completed_scan_command_results}"
)
else:
print("OK: Completed all the expected scan commands.")

Expand Down

0 comments on commit 6255c8c

Please sign in to comment.