Skip to content

Commit

Permalink
remove upstream option, re-enable upstream test
Browse files Browse the repository at this point in the history
Signed-off-by: zounengren <[email protected]>
  • Loading branch information
Zou Nengren authored Apr 9, 2020
1 parent ce07f5e commit d5e3a35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
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

0 comments on commit d5e3a35

Please sign in to comment.