aboutsummaryrefslogtreecommitdiff
path: root/plugin/k8s_external/apex_test.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2022-04-12 11:01:15 -0400
committerGravatar GitHub <noreply@github.com> 2022-04-12 11:01:15 -0400
commite60c179194cc1ff85d24fe9b887d901aea74641d (patch)
tree4baf531fdee7372c1cc5c16a1cc0609bda0e8857 /plugin/k8s_external/apex_test.go
parent83021637b35b0ef0ba09640e6f3d902cad8cdfb7 (diff)
downloadcoredns-e60c179194cc1ff85d24fe9b887d901aea74641d.tar.gz
coredns-e60c179194cc1ff85d24fe9b887d901aea74641d.tar.zst
coredns-e60c179194cc1ff85d24fe9b887d901aea74641d.zip
plugin/k8s_external: Set authoritative bit in responses (#5284)
set authoritative bit in responses Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/k8s_external/apex_test.go')
-rw-r--r--plugin/k8s_external/apex_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/k8s_external/apex_test.go b/plugin/k8s_external/apex_test.go
index 45b835e3a..57513e3f8 100644
--- a/plugin/k8s_external/apex_test.go
+++ b/plugin/k8s_external/apex_test.go
@@ -41,6 +41,9 @@ func TestApex(t *testing.T) {
if resp == nil {
t.Fatalf("Test %d, got nil message and no error for %q", i, r.Question[0].Name)
}
+ if !resp.Authoritative {
+ t.Error("Expected authoritative answer")
+ }
if err := test.SortAndCheck(resp, tc); err != nil {
t.Error(err)
}