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

Method post

pkg/configs/api/api_test.go:48–52  ·  view source on GitHub ↗

post a config

(t *testing.T, userID string, config userconfig.Config)

Source from the content-addressed store, hash-verified

46
47// post a config
48func (c configurable) post(t *testing.T, userID string, config userconfig.Config) userconfig.View {
49 w := requestAsUser(t, userID, "POST", c.Endpoint, "", readerFromConfig(t, config))
50 require.Equal(t, http.StatusNoContent, w.Code)
51 return c.get(t, userID)
52}
53
54// get a config
55func (c configurable) get(t *testing.T, userID string) userconfig.View {

Calls 4

getMethod · 0.95
requestAsUserFunction · 0.85
readerFromConfigFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected