fix: close record repair and verification gaps

This commit is contained in:
bryanpedini committed 2026-11-19 15:46:12 +01:00
1 parent 9251c85fd8
commit adff599e08
27 files changed
+787 -153

No files matched your search

+2 -2
View File
@@ -179,7 +179,7 @@ func TestIntegrationCheckAndAuditCommands(t *testing.T) {
if code := c.run("check"); code != 0 || c.stdout.String() != "ZONE NAME TYPE ID SEVERITY PROBLEM\n" {
t.Fatalf("%d %q %q", code, c.stdout.String(), c.stderr.String())
}
if d.count(t, "SELECT `version` FROM `dns_webui_schema`") != 1 {
if d.count(t, "SELECT `version` FROM `dns_webui_schema`") != 2 {
t.Fatal("check did not migrate")
}
d.rootExec(t, "INSERT INTO `dns_records` (`zone`, `name`, `ttl`, `content`, `record_type`) VALUES ('example.org.', 'www', NULL, '{\"ip\": \"192.0.2.1\"}', 'A')")
@@ -240,7 +240,7 @@ func TestIntegrationServer(t *testing.T) {
if results["/health"] != `200 OK {"status":"ok"}` || !strings.Contains(results["/version"], "CoreDNS Web UI") {
t.Fatalf("%v", results)
}
if d.count(t, "SELECT `version` FROM `coredns_webui_schema`") != 1 {
if d.count(t, "SELECT `version` FROM `coredns_webui_schema`") != 2 {
t.Fatal("server did not migrate")
}
}