aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis/kubernetes/dns-test.yaml8
-rw-r--r--test/kubernetes_test.go34
2 files changed, 21 insertions, 21 deletions
diff --git a/.travis/kubernetes/dns-test.yaml b/.travis/kubernetes/dns-test.yaml
index 77a68426c..91140830f 100644
--- a/.travis/kubernetes/dns-test.yaml
+++ b/.travis/kubernetes/dns-test.yaml
@@ -99,7 +99,7 @@ metadata:
spec:
selector:
app: app-1-a
- clusterIP: 10.3.0.100
+ clusterIP: 10.0.0.100
ports:
- name: http
port: 80
@@ -116,7 +116,7 @@ metadata:
spec:
selector:
app: app-1-b
- clusterIP: 10.3.0.110
+ clusterIP: 10.0.0.110
ports:
- name: http
port: 80
@@ -130,7 +130,7 @@ metadata:
spec:
selector:
app: app-c
- clusterIP: 10.3.0.115
+ clusterIP: 10.0.0.115
ports:
- name: c-port
port: 1234
@@ -144,7 +144,7 @@ metadata:
spec:
selector:
app: app-c
- clusterIP: 10.3.0.120
+ clusterIP: 10.0.0.120
ports:
- name: c-port
port: 1234
diff --git a/test/kubernetes_test.go b/test/kubernetes_test.go
index 819f55489..44033b965 100644
--- a/test/kubernetes_test.go
+++ b/test/kubernetes_test.go
@@ -20,7 +20,7 @@ var dnsTestCases = []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.3.0.100"),
+ test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
},
},
{
@@ -32,14 +32,14 @@ var dnsTestCases = []test.Case{
Qname: "svc-1-a.*.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.3.0.100"),
+ test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
},
},
{
Qname: "svc-1-a.any.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.3.0.100"),
+ test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
},
},
{
@@ -56,18 +56,18 @@ var dnsTestCases = []test.Case{
Qname: "*.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.3.0.100"),
- test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.3.0.110"),
- test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.3.0.115"),
+ test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
+ test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.0.0.110"),
+ test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.0.0.115"),
},
},
{
Qname: "any.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.3.0.100"),
- test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.3.0.110"),
- test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.3.0.115"),
+ test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
+ test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.0.0.110"),
+ test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.0.0.115"),
},
},
{
@@ -84,9 +84,9 @@ var dnsTestCases = []test.Case{
Qname: "*.*.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.3.0.100"),
- test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.3.0.110"),
- test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.3.0.115"),
+ test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
+ test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.0.0.110"),
+ test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.0.0.115"),
},
},
//TODO: Fix below to all use test.SRV not test.A!
@@ -170,22 +170,22 @@ var dnsTestCases = []test.Case{
},
},
{
- Qname: "123.0.3.10.in-addr.arpa.", Qtype: dns.TypePTR,
+ Qname: "123.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR,
Rcode: dns.RcodeSuccess,
Answer: []dns.RR{},
},
{
- Qname: "100.0.3.10.in-addr.arpa.", Qtype: dns.TypePTR,
+ Qname: "100.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR,
Rcode: dns.RcodeSuccess,
Answer: []dns.RR{
- test.PTR("100.0.3.10.in-addr.arpa. 303 IN PTR svc-1-a.test-1.svc.cluster.local."),
+ test.PTR("100.0.0.10.in-addr.arpa. 303 IN PTR svc-1-a.test-1.svc.cluster.local."),
},
},
{
- Qname: "115.0.3.10.in-addr.arpa.", Qtype: dns.TypePTR,
+ Qname: "115.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR,
Rcode: dns.RcodeSuccess,
Answer: []dns.RR{
- test.PTR("115.0.3.10.in-addr.arpa. 303 IN PTR svc-c.test-1.svc.cluster.local."),
+ test.PTR("115.0.0.10.in-addr.arpa. 303 IN PTR svc-c.test-1.svc.cluster.local."),
},
},
}