fix: close record repair and verification gaps
This commit is contained in:
1 parent
9251c85fd8
commit
adff599e08
27 files changed
+787
-153
No files matched your search
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user