Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Jul 17, 2024
1 parent bcddc8d commit 899873d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/e2e/test_exporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,27 @@ def test_exporting_gui(self) -> None:
output_data = json.loads(f.read().decode("ascii"))
import base64
import sys

sys.stderr.write(output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"] + "\n")
sys.stderr.write(base64.b64encode(output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"].encode('utf-8')).decode('ascii') + "\n")
sys.stderr.write(
base64.b64encode(
output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"].encode("utf-8")
).decode("ascii")
+ "\n"
)
self.assertEqual(
output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"],
"\n".join(
[
"The following domains don't have properly configured e-mail sender verification mechanisms: <ul>",
" <li>",
"<li>",
" test-smtp-server.artemis:",
"",
" Valid DMARC record not found. We recommend using all three mechanisms: SPF, DKIM and DMARC to decrease the possibility of successful e-mail message spoofing.",
" ",
" </li>",
" </ul>",
" <p>",
"</ul>",
"<p>",
" These mechanisms greatly increase the chance that the recipient server will reject a spoofed message.",
" Even if a domain is not used to send e-mails, SPF and DMARC records are needed to reduce the possibility to spoof e-mails.",
" </p>",
Expand Down

0 comments on commit 899873d

Please sign in to comment.