The first MINOR after 1.0.0: send-only DMARC guidance in the panel, AGPL packaging on every page, and an internal split of `internal/web` ahead of domain-admin work. Upgrading runs one SQLite migration (empty defaults; existing DNS guidance is unchanged until you set a report address). Changed: - `internal/web` split into subpackages (`web/view`, `web/auth`, `web/validate`, Added: - panel: DMARC guidance for send-only relays — the suggested `_dmarc` record - AGPL packaging hygiene: [NOTICE](NOTICE) names the copyright holder and the - [docs/roadmap.md](docs/roadmap.md) — candidate item **visual-style** (panel Full detail: CHANGELOG.md (1.1.0).
22 lines
454 B
Go
22 lines
454 B
Go
package legal
|
|
|
|
import (
|
|
"bytes"
|
|
"os"
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestEmbeddedLicenseMatchesRoot(t *testing.T) {
|
|
root, err := os.ReadFile(filepath.Join("..", "..", "LICENSE"))
|
|
if err != nil {
|
|
t.Fatalf("read root LICENSE: %v", err)
|
|
}
|
|
if !bytes.Equal(root, License) {
|
|
t.Fatal("internal/legal/LICENSE differs from the repository-root LICENSE; copy the root file over")
|
|
}
|
|
if len(License) == 0 {
|
|
t.Fatal("embedded LICENSE is empty")
|
|
}
|
|
}
|