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

Function getRingStatus

integration/operations/livestore_test.go:266–277  ·  view source on GitHub ↗
(t *testing.T, service *e2e.HTTPService)

Source from the content-addressed store, hash-verified

264}
265
266func getRingStatus(t *testing.T, service *e2e.HTTPService) ringStatus {
267 req, err := http.NewRequest("GET", "http://"+service.Endpoint(3200)+"/partition-ring", nil)
268 req.Header.Set("Accept", "application/json")
269 require.NoError(t, err)
270 httpResp, err := http.DefaultClient.Do(req)
271 require.NoError(t, err)
272 require.Equal(t, 200, httpResp.StatusCode)
273
274 var result ringStatus
275 require.NoError(t, json.NewDecoder(httpResp.Body).Decode(&result))
276 return result
277}
278
279func preparePartitionDownscale(t *testing.T, method string, liveStore *e2e.HTTPService) preparePartitionDownscaleResponse {
280 req, err := http.NewRequest(method, "http://"+liveStore.Endpoint(3200)+"/live-store/prepare-partition-downscale", nil)

Callers 1

Calls 4

SetMethod · 0.65
DoMethod · 0.65
DecodeMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected