Skip to content

Commit

Permalink
e2e/servicemesh: set hostname explicitly
Browse files Browse the repository at this point in the history
Same as e37b657
  • Loading branch information
Freax13 committed Nov 6, 2024
1 parent 03e2b6f commit 8da19c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/servicemesh/servicemesh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func TestIngressEgress(t *testing.T) {
defer cancel()

require.NoError(ct.Kubeclient.WithForwardedPort(ctx, ct.Namespace, "port-forwarder-web-svc", "443", func(addr string) error {
tlsConf := &tls.Config{RootCAs: pool}
tlsConf := &tls.Config{RootCAs: pool, ServerName: "web"}
hc := &http.Client{Transport: &http.Transport{TLSClientConfig: tlsConf}}
req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("https://%s/", addr), http.NoBody)
if !assert.NoError(t, err) {
Expand Down

0 comments on commit 8da19c0

Please sign in to comment.