MCPcopy Create free account
hub / github.com/cortexproject/cortex / callDeleteTenantAPI

Function callDeleteTenantAPI

pkg/ruler/ruler_test.go:2601–2609  ·  view source on GitHub ↗
(t *testing.T, api *Ruler, userID string)

Source from the content-addressed store, hash-verified

2599}
2600
2601func callDeleteTenantAPI(t *testing.T, api *Ruler, userID string) {
2602 ctx := user.InjectOrgID(context.Background(), userID)
2603
2604 req := &http.Request{}
2605 resp := httptest.NewRecorder()
2606 api.DeleteTenantConfiguration(resp, req.WithContext(ctx))
2607
2608 require.Equal(t, http.StatusOK, resp.Code)
2609}
2610
2611func verifyExpectedDeletedRuleGroupsForUser(t *testing.T, r *Ruler, userID string, expectedDeleted bool) {
2612 list, err := r.store.ListRuleGroupsForUserAndNamespace(context.Background(), userID, "")

Callers 1

Calls 2

EqualMethod · 0.65

Tested by

no test coverage detected