Skip to content

Commit afeab5a

Browse files
committed
Fix
Signed-off-by: Pavol Loffay <[email protected]>
1 parent d5d8360 commit afeab5a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

apis/v1alpha1/instrumentation_webhook_test.go

+17
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,23 @@ func TestInstrumentationValidatingWebhook(t *testing.T) {
147147
},
148148
warnings: []string{"both exporter.tls.key and exporter.tls.cert mut be set"},
149149
},
150+
{
151+
name: "no warning set",
152+
inst: Instrumentation{
153+
Spec: InstrumentationSpec{
154+
Sampler: Sampler{
155+
Type: ParentBasedTraceIDRatio,
156+
Argument: "0.99",
157+
},
158+
Exporter: Exporter{
159+
TLS: &TLS{
160+
Key: "key",
161+
Cert: "cert",
162+
},
163+
},
164+
},
165+
},
166+
},
150167
}
151168

152169
for _, test := range tests {

0 commit comments

Comments
 (0)