(groups []*rulespb.RuleGroupDesc, offset uint32)
| 2589 | } |
| 2590 | |
| 2591 | func generateTokenForGroups(groups []*rulespb.RuleGroupDesc, offset uint32) []uint32 { |
| 2592 | var tokens []uint32 |
| 2593 | |
| 2594 | for _, g := range groups { |
| 2595 | tokens = append(tokens, tokenForGroup(g)+offset) |
| 2596 | } |
| 2597 | |
| 2598 | return tokens |
| 2599 | } |
| 2600 | |
| 2601 | func callDeleteTenantAPI(t *testing.T, api *Ruler, userID string) { |
| 2602 | ctx := user.InjectOrgID(context.Background(), userID) |
no test coverage detected