Chore: Remove bus from plugin proxy api (#44899)
* remove bus from plugin proxy api * fixing the tests
This commit is contained in:
1 parent
7a23700e1a
commit
9d654bb6b8
4 files changed
+53
-57
No files matched your search
@@ -11,10 +11,12 @@ import (
|
||||
type SQLStoreMock struct {
|
||||
LastGetAlertsQuery *models.GetAlertsQuery
|
||||
|
||||
ExpectedUser *models.User
|
||||
ExpectedDatasource *models.DataSource
|
||||
ExpectedAlert *models.Alert
|
||||
ExpectedError error
|
||||
ExpectedUser *models.User
|
||||
ExpectedDatasource *models.DataSource
|
||||
ExpectedAlert *models.Alert
|
||||
ExpectedPluginSetting *models.PluginSetting
|
||||
|
||||
ExpectedError error
|
||||
}
|
||||
|
||||
func NewSQLStoreMock() *SQLStoreMock {
|
||||
@@ -239,6 +241,7 @@ func (m *SQLStoreMock) GetPluginSettings(ctx context.Context, orgID int64) ([]*m
|
||||
}
|
||||
|
||||
func (m *SQLStoreMock) GetPluginSettingById(ctx context.Context, query *models.GetPluginSettingByIdQuery) error {
|
||||
query.Result = m.ExpectedPluginSetting
|
||||
return m.ExpectedError
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user