diff options
Diffstat (limited to 'test/kubernetes_test.go')
-rw-r--r-- | test/kubernetes_test.go | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/test/kubernetes_test.go b/test/kubernetes_test.go index 1d00be3b8..d99ca1618 100644 --- a/test/kubernetes_test.go +++ b/test/kubernetes_test.go @@ -450,7 +450,7 @@ func doIntegrationTests(t *testing.T, corefile string, testCases []test.Case) { // Work-around for timing condition that results in no-data being returned in // test environment. - time.Sleep(1 * time.Second) + time.Sleep(3 * time.Second) for _, tc := range testCases { @@ -513,6 +513,27 @@ func TestKubernetesIntegration(t *testing.T) { doIntegrationTests(t, corefile, dnsTestCases) } +func TestKubernetesIntegrationAPIProxy(t *testing.T) { + + removeUpstreamConfig, upstreamServer, udp := createUpstreamServer(t) + defer upstreamServer.Stop() + defer removeUpstreamConfig() + + corefile := + `.:0 { + kubernetes cluster.local 0.0.10.in-addr.arpa { + endpoint http://nonexistance:8080,http://invalidip:8080,http://localhost:8080 + namespaces test-1 + pods disabled + upstream ` + udp + ` + } + erratic . { + drop 0 + } +` + doIntegrationTests(t, corefile, dnsTestCases) +} + func TestKubernetesIntegrationPodsInsecure(t *testing.T) { corefile := `.:0 { |