Skip to content

Commit

Permalink
missing test case
Browse files Browse the repository at this point in the history
Signed-off-by: chahatsagarmain <[email protected]>
  • Loading branch information
chahatsagarmain committed Dec 7, 2024
1 parent f36c84d commit 71194a5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cmd/collector/app/handler/zipkin_receiver_tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,28 @@ func TestSpanCollectorZipkinTLS(t *testing.T) {
expectZipkinClientErr: true,
expectServerFail: false,
},
{
name: "should fail with TLS client with cert to trusted TLS server with incorrect TLS min",
serverTLS: configtls.ServerConfig{
ClientCAFile: testCertKeyLocation + "/example-CA-cert.pem",
Config: configtls.Config{
CertFile: testCertKeyLocation + "/example-server-cert.pem",
KeyFile: testCertKeyLocation + "/example-server-key.pem",
MinVersion: "1.5",
},
},
clientTLS: configtls.ClientConfig{
Config: configtls.Config{
CAFile: testCertKeyLocation + "/example-CA-cert.pem",
CertFile: testCertKeyLocation + "/example-client-cert.pem",
KeyFile: testCertKeyLocation + "/example-client-key.pem",
},
ServerName: "example.com",
},
expectTLSClientErr: true,
expectServerFail: true,
expectZipkinClientErr: false,
},
}

for _, test := range testCases {
Expand Down

0 comments on commit 71194a5

Please sign in to comment.