diff options
author | 2017-08-25 11:04:21 -0700 | |
---|---|---|
committer | 2017-08-25 11:04:21 -0700 | |
commit | 3a9cb4fcf82a3282006248bb87e2f1c764480403 (patch) | |
tree | 2f633e3f2c1f861104c6036e47477e80edd10ee5 /test | |
parent | 55dafe6f594781568a0060ee57f62858a77f3b21 (diff) | |
download | coredns-3a9cb4fcf82a3282006248bb87e2f1c764480403.tar.gz coredns-3a9cb4fcf82a3282006248bb87e2f1c764480403.tar.zst coredns-3a9cb4fcf82a3282006248bb87e2f1c764480403.zip |
Reduce the test cases for kubernetes API proxy (#989)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/kubernetes_test.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/kubernetes_test.go b/test/kubernetes_test.go index 0f1e8aac3..49d37734c 100644 --- a/test/kubernetes_test.go +++ b/test/kubernetes_test.go @@ -660,6 +660,16 @@ var dnsTestCasesFallthrough = []test.Case{ }, } +var dnsTestCasesAPIProxy = []test.Case{ + { + Qname: "svc-1-a.test-1.svc.cluster.local.", Qtype: dns.TypeA, + Rcode: dns.RcodeSuccess, + Answer: []dns.RR{ + test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"), + }, + }, +} + func doIntegrationTests(t *testing.T, corefile string, testCases []test.Case) { server, udp, _, err := CoreDNSServerAndPorts(corefile) if err != nil { @@ -747,7 +757,7 @@ func TestKubernetesIntegrationAPIProxy(t *testing.T) { drop 0 } ` - doIntegrationTests(t, corefile, dnsTestCases) + doIntegrationTests(t, corefile, dnsTestCasesAPIProxy) } func TestKubernetesIntegrationPodsInsecure(t *testing.T) { |