From 2180ec8e8f6d321a0fa33d31efcefa677870f35e Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Sun, 23 Jun 2024 15:56:57 +0000 Subject: [PATCH] fix tracing integration test Signed-off-by: Davanum Srinivas --- test/integration/apiserver/tracing/tracing_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/apiserver/tracing/tracing_test.go b/test/integration/apiserver/tracing/tracing_test.go index b6d8b828a68..0a00a138f9c 100644 --- a/test/integration/apiserver/tracing/tracing_test.go +++ b/test/integration/apiserver/tracing/tracing_test.go @@ -311,7 +311,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil { { name: "POST /api/v1/nodes", attributes: map[string]func(*commonv1.AnyValue) bool{ - "http.user_agent": func(v *commonv1.AnyValue) bool { + "user_agent.original": func(v *commonv1.AnyValue) bool { return strings.HasPrefix(v.GetStringValue(), "tracing.test") }, "http.target": func(v *commonv1.AnyValue) bool { @@ -430,7 +430,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil { { name: "GET /api/v1/nodes/{:name}", attributes: map[string]func(*commonv1.AnyValue) bool{ - "http.user_agent": func(v *commonv1.AnyValue) bool { + "user_agent.original": func(v *commonv1.AnyValue) bool { return strings.HasPrefix(v.GetStringValue(), "tracing.test") }, "http.target": func(v *commonv1.AnyValue) bool { @@ -520,7 +520,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil { { name: "GET /api/v1/nodes", attributes: map[string]func(*commonv1.AnyValue) bool{ - "http.user_agent": func(v *commonv1.AnyValue) bool { + "user_agent.original": func(v *commonv1.AnyValue) bool { return strings.HasPrefix(v.GetStringValue(), "tracing.test") }, "http.target": func(v *commonv1.AnyValue) bool { @@ -606,7 +606,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil { { name: "PUT /api/v1/nodes/{:name}", attributes: map[string]func(*commonv1.AnyValue) bool{ - "http.user_agent": func(v *commonv1.AnyValue) bool { + "user_agent.original": func(v *commonv1.AnyValue) bool { return strings.HasPrefix(v.GetStringValue(), "tracing.test") }, "http.target": func(v *commonv1.AnyValue) bool { @@ -750,7 +750,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil { { name: "PATCH /api/v1/nodes/{:name}", attributes: map[string]func(*commonv1.AnyValue) bool{ - "http.user_agent": func(v *commonv1.AnyValue) bool { + "user_agent.original": func(v *commonv1.AnyValue) bool { return strings.HasPrefix(v.GetStringValue(), "tracing.test") }, "http.target": func(v *commonv1.AnyValue) bool { @@ -871,7 +871,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil { { name: "DELETE /api/v1/nodes/{:name}", attributes: map[string]func(*commonv1.AnyValue) bool{ - "http.user_agent": func(v *commonv1.AnyValue) bool { + "user_agent.original": func(v *commonv1.AnyValue) bool { return strings.HasPrefix(v.GetStringValue(), "tracing.test") }, "http.target": func(v *commonv1.AnyValue) bool {