(t *testing.T, api *Ruler, userID string)
| 2599 | } |
| 2600 | |
| 2601 | func 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 | |
| 2611 | func verifyExpectedDeletedRuleGroupsForUser(t *testing.T, r *Ruler, userID string, expectedDeleted bool) { |
| 2612 | list, err := r.store.ListRuleGroupsForUserAndNamespace(context.Background(), userID, "") |
no test coverage detected