From f26f716bce84fca6121f4ef7dfe5248f3b98c836 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 28 Dec 2024 11:58:27 +0100 Subject: [PATCH] authres: add ARC parsing test Example taken from the RFC. --- authres/parse_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/authres/parse_test.go b/authres/parse_test.go index 108ea32..b6f207a 100644 --- a/authres/parse_test.go +++ b/authres/parse_test.go @@ -32,6 +32,19 @@ var parseTests = []msgauthTest{ &AuthResult{Value: ResultPass, Auth: "sender@example.com"}, }, }, + { + value: `clochette.example.org; spf=fail + smtp.from=jqd@d1.example; dkim=fail (512-bit key) + header.i=@d1.example; dmarc=fail; arc=pass (as.2.gmail.example=pass, + ams.2.gmail.example=pass, as.1.lists.example.org=pass, + ams.1.lists.example.org=fail (message has been altered))`, + identifier: "clochette.example.org", + results: []Result{ + &SPFResult{}, + &DMARCResult{}, + &ARCResult{}, + }, + }, } func TestParse(t *testing.T) {