MCPcopy Index your code
hub / github.com/cortexproject/cortex / getRuntimeConfig

Function getRuntimeConfig

integration/runtime_config_test.go:275–285  ·  view source on GitHub ↗
(t *testing.T, cortexSvc *e2ecortex.CortexService)

Source from the content-addressed store, hash-verified

273}
274
275func getRuntimeConfig(t *testing.T, cortexSvc *e2ecortex.CortexService) cortex.RuntimeConfigValues {
276 res, err := e2e.GetRequest("http://" + cortexSvc.HTTPEndpoint() + "/runtime_config")
277 require.NoError(t, err)
278
279 body, err := io.ReadAll(res.Body)
280 require.NoError(t, err)
281
282 runtimeConfig := cortex.RuntimeConfigValues{}
283 require.NoError(t, yaml.Unmarshal(body, &runtimeConfig))
284 return runtimeConfig
285}

Calls 3

GetRequestFunction · 0.92
HTTPEndpointMethod · 0.80
UnmarshalMethod · 0.45

Tested by

no test coverage detected