Rename catalog-zone-gen to catz across codebase
Update binary name, usage strings, generated file headers, tests, and README. The generated BIND config header now includes the install path: go install go.askask.com/catz@latest
This commit is contained in:
@@ -18,7 +18,7 @@ func TestGenerateBindConf(t *testing.T) {
|
||||
got := generateBindConf(entries, emptyCfg)
|
||||
|
||||
// Header
|
||||
assertContains(t, got, "# THIS FILE IS GENERATED BY catalog-zone-gen")
|
||||
assertContains(t, got, "# THIS FILE IS GENERATED BY catz (go install go.askask.com/catz@latest)")
|
||||
assertContains(t, got, "#=============================================")
|
||||
|
||||
// Zones should be sorted alphabetically (askask.com before bitcard.org)
|
||||
@@ -145,7 +145,7 @@ func TestWriteBindConfSkipsCatalogOnlyZones(t *testing.T) {
|
||||
got := string(data)
|
||||
|
||||
// Should have header but no zone blocks
|
||||
assertContains(t, got, "# THIS FILE IS GENERATED BY catalog-zone-gen")
|
||||
assertContains(t, got, "# THIS FILE IS GENERATED BY catz (go install go.askask.com/catz@latest)")
|
||||
if strings.Contains(got, "example.com") {
|
||||
t.Error("zone without file= should not appear in BIND config")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user