Skip to content

Commit 29970a4

Browse files
committed
fixed failed test case
Signed-off-by: Horiodino <[email protected]>
1 parent f9d583e commit 29970a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/instrumentation/sdk_test.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,10 @@ func TestSDKInjection(t *testing.T) {
535535
ObjectMeta: metav1.ObjectMeta{
536536
Namespace: "project1",
537537
Name: "app",
538+
Annotations: map[string]string{
539+
"resource.opentelemetry.io/fromtest": "val",
540+
"resource.opentelemetry.io/foo": "test",
541+
},
538542
},
539543
Spec: corev1.PodSpec{
540544
Containers: []corev1.Container{
@@ -567,7 +571,7 @@ func TestSDKInjection(t *testing.T) {
567571
},
568572
{
569573
Name: "OTEL_RESOURCE_ATTRIBUTES",
570-
Value: "foo=bar,k8s.container.name=other,service.version=explicitly_set,fromcr=val,k8s.namespace.name=project1,k8s.node.name=$(OTEL_RESOURCE_ATTRIBUTES_NODE_NAME),k8s.pod.name=app,fromtest=val",
574+
Value: "foo=bar,k8s.container.name=other,service.version=explicitly_set,foo=test,fromcr=val,fromtest=val,k8s.namespace.name=project1,k8s.node.name=$(OTEL_RESOURCE_ATTRIBUTES_NODE_NAME),k8s.pod.name=app",
571575
},
572576
},
573577
},

0 commit comments

Comments
 (0)