Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove kubernetes related option #125

Merged
merged 1 commit into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/kubernetes/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var dnsTestCasesA = []test.Case{
test.A("*.test-1.svc.cluster.local. 303 IN A 172.17.0.254"),
test.A("*.test-1.svc.cluster.local. 303 IN A 172.17.0.255"),
test.CNAME("*.test-1.svc.cluster.local. 303 IN CNAME example.net."),
// test.A("example.net. 303 IN A 13.14.15.16"), // Not resolved because no proxy is defined.
test.A("example.net. 303 IN A 13.14.15.16"),
},
},
{ // A wild card service name in an un-exposed namespace result in nxdomain
Expand Down Expand Up @@ -146,9 +146,9 @@ func TestKubernetesA(t *testing.T) {
errors
log
kubernetes cluster.local 10.in-addr.arpa {
namespaces test-1
upstream ` + udp + `
}
namespaces test-1
}
forward . ` + udp + `
}
`

Expand Down
10 changes: 0 additions & 10 deletions test/kubernetes/fallthrough_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func TestKubernetesFallthrough(t *testing.T) {
defer rmFunc()

time.Sleep(1 * time.Second)

corefile := ` .:53 {
health
ready
Expand All @@ -65,7 +64,6 @@ func TestKubernetesFallthrough(t *testing.T) {
file /etc/coredns/Zonefile cluster.local
kubernetes cluster.local {
namespaces test-1
upstream ` + udp + `
fallthrough
}
forward . ` + udp + `
Expand Down Expand Up @@ -120,13 +118,6 @@ var dnsTestCasesFallthroughFiltered = []test.Case{
}

func TestKubernetesFallthroughFiltered(t *testing.T) {

rmFunc, upstream, udp := UpstreamServer(t, "example.net", ExampleNet)
defer upstream.Stop()
defer rmFunc()

time.Sleep(1 * time.Second)

corefile := ` .:53 {
health
ready
Expand All @@ -135,7 +126,6 @@ func TestKubernetesFallthroughFiltered(t *testing.T) {
file /etc/coredns/Zonefile cluster.local
kubernetes cluster.local {
namespaces test-1
upstream ` + udp + `
fallthrough svc.cluster.local
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/kubernetes/srv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func TestKubernetesSRV(t *testing.T) {
log
kubernetes cluster.local {
namespaces test-1
upstream ` + udp + `
}
}
forward . ` + udp + `
}
`

Expand Down