MCPcopy
hub / github.com/grafana/tempo / verifyPartitionState

Function verifyPartitionState

integration/operations/livestore_test.go:291–301  ·  view source on GitHub ↗
(t *testing.T, service *e2e.HTTPService, expectedState string, expectedCount int)

Source from the content-addressed store, hash-verified

289}
290
291func verifyPartitionState(t *testing.T, service *e2e.HTTPService, expectedState string, expectedCount int) {
292 partitionStateMatchers := []*labels.Matcher{
293 {Type: labels.MatchEqual, Name: "state", Value: expectedState},
294 {Type: labels.MatchEqual, Name: "name", Value: "livestore-partitions"},
295 }
296 require.NoError(t, service.WaitSumMetricsWithOptions(
297 e2e.Equals(float64(expectedCount)),
298 []string{"tempo_partition_ring_partitions"},
299 e2e.WithLabelMatchers(partitionStateMatchers...),
300 ))
301}
302
303func waitForTraceInLiveStore(t *testing.T, expectedTraces int, liveStores ...*e2e.HTTPService) *e2e.HTTPService {
304 ch := make(chan *e2e.HTTPService)

Callers 1

Calls 1

EqualsMethod · 0.80

Tested by

no test coverage detected