Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5d02f39

Browse files
author
root
committedNov 30, 2016
added testing for reencrypt InsecureEdgeTerminationPolicyAllow in
test/integration/router_test.go
1 parent f4d1fc2 commit 5d02f39

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎test/integration/router_test.go

+19
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,25 @@ func TestRouter(t *testing.T) {
195195
},
196196
routerUrl: "0.0.0.0",
197197
},
198+
{
199+
name: "reencrypt-InsecureEdgePolicy",
200+
serviceName: "example-reencrypt",
201+
endpoints: []kapi.EndpointSubset{httpsEndpoint},
202+
routeAlias: "www.example.com",
203+
endpointEventType: watch.Added,
204+
routeEventType: watch.Added,
205+
protocol: "http",
206+
expectedResponse: tr.HelloPodSecure,
207+
routeTLS: &routeapi.TLSConfig{
208+
Termination: routeapi.TLSTerminationReencrypt,
209+
Certificate: tr.ExampleCert,
210+
Key: tr.ExampleKey,
211+
CACertificate: tr.ExampleCACert,
212+
DestinationCACertificate: tr.ExampleCACert,
213+
InsecureEdgeTerminationPolicy: routeapi.InsecureEdgeTerminationPolicyAllow,
214+
},
215+
routerUrl: "0.0.0.0",
216+
},
198217
{
199218
name: "reencrypt-destcacert",
200219
serviceName: "example-reencrypt-destcacert",

0 commit comments

Comments
 (0)
Please sign in to comment.