Alerting: Add GetImages to ImageStore (#49717)

* Alerting: Add GetImages to ImageStore

* Use assert.ElementsMatch instead of sort.Sort
This commit is contained in:
George Robinson
2022-05-30 09:26:16 +01:00
committed by GitHub
parent 4fae0f49d7
commit 47a3ddd968
3 changed files with 73 additions and 2 deletions
+4
View File
@@ -27,6 +27,10 @@ func (f *FakeConfigStore) GetImage(ctx context.Context, token string) (*models.I
return nil, models.ErrImageNotFound
}
func (f *FakeConfigStore) GetImages(ctx context.Context, tokens []string) ([]models.Image, error) {
return nil, models.ErrImageNotFound
}
func NewFakeConfigStore(t *testing.T, configs map[int64]*models.AlertConfiguration) FakeConfigStore {
t.Helper()