Skip to content

Commit

Permalink
feat: fixing metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed Apr 4, 2024
1 parent 9fd822d commit 8ff9b62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/tracetest/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/golang-jwt/jwt"
"github.com/kubeshop/tracetest/cli/openapi"
"github.com/kubeshop/xk6-tracetest/models"
"github.com/kubeshop/xk6-tracetest/modules/metadata"
"sigs.k8s.io/yaml"
)

Expand Down Expand Up @@ -192,7 +193,7 @@ func (t *Tracetest) runTest(job *models.Job) (*openapi.TestRun, error) {
Key: &traceID,
Value: &job.TraceID,
}},
Metadata: job.Request.Metadata,
Metadata: job.Metadata.Merge(metadata.Metadata(job.Request.Metadata)),
})

run, resp, err := t.client.ApiApi.RunTestExecute(request)
Expand Down

0 comments on commit 8ff9b62

Please sign in to comment.