Skip to content

Commit

Permalink
use correct field for tls version
Browse files Browse the repository at this point in the history
Signed-off-by: Clay Kauzlaric <ckauzlaric@vmware.com>
  • Loading branch information
KauzClay committed Nov 15, 2023
1 parent 1cbdcb8 commit cef467e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/httpproxy/backend_tls_protocol_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func testBackendTLSProtocolVersion(namespace, protocolVersion string) {

type responseTLSDetails struct {
TLS struct {
NegotiatedProtocol string
Version string
}
}

Expand All @@ -96,7 +96,7 @@ func testBackendTLSProtocolVersion(namespace, protocolVersion string) {
// Get cert presented to backend app.
tlsInfo := new(responseTLSDetails)
require.NoError(f.T(), json.Unmarshal(res.Body, tlsInfo))
assert.Equal(f.T(), tlsInfo.TLS.NegotiatedProtocol, protocolVersion)
assert.Equal(f.T(), tlsInfo.TLS.Version, protocolVersion)

})
}

0 comments on commit cef467e

Please sign in to comment.