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
+1
-1
@@ -492,7 +492,7 @@ func TestDelegationStore(t *testing.T) {
|
||||
if err != nil || len(zones) != 2 || !zones[0].ZoneExists || zones[1].ZoneExists || zones[1].Zone != "gone.org." {
|
||||
t.Fatal(zones, err)
|
||||
}
|
||||
expectQuery(t, st.Calls()[3], "EXISTS (SELECT 1 FROM `coredns_records` r WHERE r.`zone` = d.`zone`)")
|
||||
expectQuery(t, st.Calls()[3], "EXISTS (SELECT 1 FROM `coredns_records` r WHERE "+recordZoneKey("r.`zone`")+" = CAST(d.`zone` AS BINARY))")
|
||||
deleted, err := s.DeleteZoneDelegations(ctx, "a.org.")
|
||||
if err != nil || len(deleted) != 1 || deleted[0].Username != "carol" || deleted[0].CreatedBy != 1 {
|
||||
t.Fatal(deleted, err)
|
||||
|
||||
Reference in new issue
Block a user