mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Reduce the test cases for kubernetes API proxy (#989)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
		| @@ -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) { | func doIntegrationTests(t *testing.T, corefile string, testCases []test.Case) { | ||||||
| 	server, udp, _, err := CoreDNSServerAndPorts(corefile) | 	server, udp, _, err := CoreDNSServerAndPorts(corefile) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| @@ -747,7 +757,7 @@ func TestKubernetesIntegrationAPIProxy(t *testing.T) { | |||||||
|         drop 0 |         drop 0 | ||||||
|     } |     } | ||||||
| ` | ` | ||||||
| 	doIntegrationTests(t, corefile, dnsTestCases) | 	doIntegrationTests(t, corefile, dnsTestCasesAPIProxy) | ||||||
| } | } | ||||||
|  |  | ||||||
| func TestKubernetesIntegrationPodsInsecure(t *testing.T) { | func TestKubernetesIntegrationPodsInsecure(t *testing.T) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user