Skip to content

Commit a3b7cb9

Browse files
committed
fix tracing integration test
1 parent 0455544 commit a3b7cb9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/integration/apiserver/tracing/tracing_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
311311
{
312312
name: "POST /api/v1/nodes",
313313
attributes: map[string]func(*commonv1.AnyValue) bool{
314-
"http.user_agent": func(v *commonv1.AnyValue) bool {
314+
"user_agent.original": func(v *commonv1.AnyValue) bool {
315315
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
316316
},
317317
"http.target": func(v *commonv1.AnyValue) bool {
@@ -430,7 +430,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
430430
{
431431
name: "GET /api/v1/nodes/{:name}",
432432
attributes: map[string]func(*commonv1.AnyValue) bool{
433-
"http.user_agent": func(v *commonv1.AnyValue) bool {
433+
"user_agent.original": func(v *commonv1.AnyValue) bool {
434434
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
435435
},
436436
"http.target": func(v *commonv1.AnyValue) bool {
@@ -520,7 +520,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
520520
{
521521
name: "GET /api/v1/nodes",
522522
attributes: map[string]func(*commonv1.AnyValue) bool{
523-
"http.user_agent": func(v *commonv1.AnyValue) bool {
523+
"user_agent.original": func(v *commonv1.AnyValue) bool {
524524
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
525525
},
526526
"http.target": func(v *commonv1.AnyValue) bool {
@@ -606,7 +606,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
606606
{
607607
name: "PUT /api/v1/nodes/{:name}",
608608
attributes: map[string]func(*commonv1.AnyValue) bool{
609-
"http.user_agent": func(v *commonv1.AnyValue) bool {
609+
"user_agent.original": func(v *commonv1.AnyValue) bool {
610610
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
611611
},
612612
"http.target": func(v *commonv1.AnyValue) bool {
@@ -750,7 +750,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
750750
{
751751
name: "PATCH /api/v1/nodes/{:name}",
752752
attributes: map[string]func(*commonv1.AnyValue) bool{
753-
"http.user_agent": func(v *commonv1.AnyValue) bool {
753+
"user_agent.original": func(v *commonv1.AnyValue) bool {
754754
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
755755
},
756756
"http.target": func(v *commonv1.AnyValue) bool {
@@ -871,7 +871,7 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
871871
{
872872
name: "DELETE /api/v1/nodes/{:name}",
873873
attributes: map[string]func(*commonv1.AnyValue) bool{
874-
"http.user_agent": func(v *commonv1.AnyValue) bool {
874+
"user_agent.original": func(v *commonv1.AnyValue) bool {
875875
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
876876
},
877877
"http.target": func(v *commonv1.AnyValue) bool {

0 commit comments

Comments
 (0)