Skip to content

Commit

Permalink
Revert "fix tracing integration test"
Browse files Browse the repository at this point in the history
This reverts commit a3b7cb9.
  • Loading branch information
dashpole committed Jun 26, 2024
1 parent 8a62765 commit 7bcb2a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/apiserver/tracing/tracing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
"user_agent.original": func(v *commonv1.AnyValue) bool {
"http.user_agent": func(v *commonv1.AnyValue) bool {
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
},
"http.target": func(v *commonv1.AnyValue) bool {
Expand Down Expand Up @@ -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{
"user_agent.original": func(v *commonv1.AnyValue) bool {
"http.user_agent": func(v *commonv1.AnyValue) bool {
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
},
"http.target": func(v *commonv1.AnyValue) bool {
Expand Down Expand Up @@ -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{
"user_agent.original": func(v *commonv1.AnyValue) bool {
"http.user_agent": func(v *commonv1.AnyValue) bool {
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
},
"http.target": func(v *commonv1.AnyValue) bool {
Expand Down Expand Up @@ -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{
"user_agent.original": func(v *commonv1.AnyValue) bool {
"http.user_agent": func(v *commonv1.AnyValue) bool {
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
},
"http.target": func(v *commonv1.AnyValue) bool {
Expand Down Expand Up @@ -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{
"user_agent.original": func(v *commonv1.AnyValue) bool {
"http.user_agent": func(v *commonv1.AnyValue) bool {
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
},
"http.target": func(v *commonv1.AnyValue) bool {
Expand Down Expand Up @@ -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{
"user_agent.original": func(v *commonv1.AnyValue) bool {
"http.user_agent": func(v *commonv1.AnyValue) bool {
return strings.HasPrefix(v.GetStringValue(), "tracing.test")
},
"http.target": func(v *commonv1.AnyValue) bool {
Expand Down

0 comments on commit 7bcb2a9

Please sign in to comment.