Open pramodrj07 opened 2 months ago
/assign @snehachhabria
@youngnick: GitHub didn't allow me to assign the following users: snehachhabria.
Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide
/assign @snehachhabria
Per the discussion on this issue on the meeting, currently there are no tests in the conformance that are asserting on this, however exposing this will allow the extension of tests to make these assertions as well in the future.
If an unexpected cert is provided there will be a TLS connection error and there is no need to validate the cert in this scenario but for success scenarios additional validation will help assert the cert details.
Request to include the certificate/s in the CapturedResponse of the conformance test:
To verify the certificate served by the listener/service:
During our testing we found that roundtripper.CapturedResponse does not have a certificates field similar to http.Response(https://github.com/golang/go/blob/master/src/crypto/tls/common.go#L265). It would come in handy for testing as we currently have a wrapper for the same.
or If there is any other way in which this is already done, It would be great to know about it