summaryrefslogtreecommitdiffstats
path: root/katzenpost/dispatcher/envelope_test.go
diff options
context:
space:
mode:
authorGab <24553253+gabrix73@users.noreply.github.com>2026-08-14 20:39:22 +0200
committerGab <24553253+gabrix73@users.noreply.github.com>2026-08-14 20:39:22 +0200
commit43fbddf016f94f4ba006d82c9a67dca61b5852a1 (patch)
tree70054d5fa8a34bb094b8c3ef8ddc9c1fcea3b3d5 /katzenpost/dispatcher/envelope_test.go
parent994071243fc80990cf09e820b671006e9bd31c76 (diff)
downloadyamnweb-43fbddf016f94f4ba006d82c9a67dca61b5852a1.tar.gz
yamnweb-43fbddf016f94f4ba006d82c9a67dca61b5852a1.tar.xz
yamnweb-43fbddf016f94f4ba006d82c9a67dca61b5852a1.zip
Complete Nym and YAMN transport integration
Diffstat (limited to 'katzenpost/dispatcher/envelope_test.go')
-rw-r--r--katzenpost/dispatcher/envelope_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/katzenpost/dispatcher/envelope_test.go b/katzenpost/dispatcher/envelope_test.go
deleted file mode 100644
index 712071c..0000000
--- a/katzenpost/dispatcher/envelope_test.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package dispatcher
-
-import "testing"
-
-func TestEnvelopeValidate(t *testing.T) {
- allowed := map[string]struct{}{"remailer.example": {}}
- valid := Envelope{
- EntryAddress: "entry@remailer.example",
- Message: []byte("To: entry@remailer.example\nFrom: mix@nowhere.invalid\n\n-----BEGIN REMAILER MESSAGE-----\nabc\n"),
- }
- if err := valid.Validate(allowed); err != nil {
- t.Fatalf("expected valid envelope: %v", err)
- }
-
- invalidDomain := valid
- invalidDomain.EntryAddress = "entry@other.example"
- invalidDomain.Message = []byte("To: entry@other.example\n-----BEGIN REMAILER MESSAGE-----\n")
- if err := invalidDomain.Validate(allowed); err == nil {
- t.Fatal("expected unknown domain rejection")
- }
-}