Alerting: update DeleteAlertRuleByUID to accept many UID (#46890)

This commit is contained in:
Yuriy Tseretyan
2022-03-23 16:09:53 -04:00
committed by GitHub
parent d57c94fb6a
commit 60d4cd80bf
4 changed files with 23 additions and 12 deletions
+3 -1
View File
@@ -76,7 +76,9 @@ func (f *FakeRuleStore) GetRecordedCommands(predicate func(cmd interface{}) (int
return result
}
func (f *FakeRuleStore) DeleteAlertRuleByUID(_ context.Context, _ int64, _ string) error { return nil }
func (f *FakeRuleStore) DeleteAlertRulesByUID(_ context.Context, _ int64, _ ...string) error {
return nil
}
func (f *FakeRuleStore) DeleteNamespaceAlertRules(_ context.Context, _ int64, _ string) ([]string, error) {
return []string{}, nil
}