From 8ff9b62f452077e638d2b4348fdaed81cbb77e45 Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Thu, 4 Apr 2024 12:26:03 -0600 Subject: [PATCH] feat: fixing metadata --- modules/tracetest/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tracetest/api.go b/modules/tracetest/api.go index 6907e5e..a721d8c 100644 --- a/modules/tracetest/api.go +++ b/modules/tracetest/api.go @@ -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" ) @@ -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)