fix(pdfcert): branded Registration Document without mcp.verae.ai
Match the official Verae Timestamp Registration Document layout (logo, frames, field list, QR). Disclaimer: only the digest was submitted. Lookup/footer use explorer.verae.ai — no mcp.verae.ai or “via MCP”.
This commit is contained in:
parent
b40e862082
commit
38b902d5e7
1 changed files with 279 additions and 82 deletions
|
|
@ -60,8 +60,14 @@ func TestRunZapierWritesNamedFiles(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
got, _ := os.ReadFile(res.CertificatePDF)
|
||||
if string(got) != string(pdf) {
|
||||
t.Fatalf("cert bytes mismatch")
|
||||
if !strings.HasPrefix(string(got), "%PDF") {
|
||||
t.Fatal("certificate is not a PDF")
|
||||
}
|
||||
if !strings.Contains(string(got), "Verae Timestamp Registration Document") {
|
||||
t.Fatal("missing branded title")
|
||||
}
|
||||
if strings.Contains(string(got), "mcp.verae.ai") || strings.Contains(string(got), "via MCP") {
|
||||
t.Fatal("certificate must not mention mcp.verae.ai / via MCP")
|
||||
}
|
||||
if _, err := os.Stat(res.ReceiptJSON); err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue