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

Method get

pkg/configs/api/api_test.go:55–58  ·  view source on GitHub ↗

get a config

(t *testing.T, userID string)

Source from the content-addressed store, hash-verified

53
54// get a config
55func (c configurable) get(t *testing.T, userID string) userconfig.View {
56 w := requestAsUser(t, userID, "GET", c.Endpoint, "", nil)
57 return parseView(t, w.Body.Bytes())
58}
59
60// configs returns 401 to requests without authentication.
61func Test_GetConfig_Anonymous(t *testing.T) {

Callers 2

postMethod · 0.95

Calls 3

requestAsUserFunction · 0.85
parseViewFunction · 0.85
BytesMethod · 0.65

Tested by

no test coverage detected