Skip to content

Commit

Permalink
test(tempoe2e): ensure SearchTagValues properly handles scoped tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed May 24, 2024
1 parent 5c05979 commit 3b439b1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions integration/tempoe2e/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,27 @@ func runTest(
}
}
})
t.Run("ResourceAttribute", func(t *testing.T) {
a := require.New(t)

r, err := c.SearchTagValuesV2(ctx, tempoapi.SearchTagValuesV2Params{
AttributeSelector: `resource.service.name`,
Start: start,
End: end,
})
a.NoError(err)

tagValues := map[string]struct{}{}
for _, t := range set.Tags["service.name"] {
tagValues[t.Value] = struct{}{}
}

a.Len(r.TagValues, len(tagValues))
for _, tag := range r.TagValues {
a.Equal("string", tag.Type)
a.Contains(tagValues, tag.Value)
}
})
t.Run("SpanName", func(t *testing.T) {
a := require.New(t)

Expand Down

0 comments on commit 3b439b1

Please sign in to comment.