Skip to content

Commit

Permalink
added testcase for collector's HTTP TLS at receiver
Browse files Browse the repository at this point in the history
Signed-off-by: rjs211 <srivatsa211@gmail.com>
  • Loading branch information
rjs211 committed Feb 7, 2021
1 parent d3c2c8d commit 5ba777b
Showing 1 changed file with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func TestDefaultValueFromViper(t *testing.T) {
},
},
{
name: "collectorTLS",
name: "collectorGRPCTLS",
flags: []string{
"--collector.grpc.tls.enabled=true",
"--collector.grpc.tls.cert=/cert.pem",
Expand All @@ -185,6 +185,30 @@ func TestDefaultValueFromViper(t *testing.T) {
},
},
},
{
name: "collectorHTTPTLS",
flags: []string{
"--collector.http.tls.enabled=true",
"--collector.http.tls.cert=/cert.pem",
"--collector.http.tls.key=/key.pem",
"--collector.http.tls.client-ca=/client-ca.pem",
},
expected: &jaegerreceiver.Config{
Protocols: jaegerreceiver.Protocols{
ThriftHTTP: &confighttp.HTTPServerSettings{

Endpoint: ":14268",
TLSSetting: &configtls.TLSServerSetting{
TLSSetting: configtls.TLSSetting{
CertFile: "/cert.pem",
KeyFile: "/key.pem",
},
ClientCAFile: "/client-ca.pem",
},
},
},
},
},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
Expand Down

0 comments on commit 5ba777b

Please sign in to comment.