Backend
This commit is contained in:
@@ -2248,6 +2248,7 @@ func createTestRequestCtx() contextmodel.ReqContext {
|
||||
}
|
||||
|
||||
type fakeNotificationPolicyService struct {
|
||||
NotificationPolicyService
|
||||
tree definitions.Route
|
||||
prov models.Provenance
|
||||
}
|
||||
@@ -2318,7 +2319,9 @@ func (f *fakeNotificationPolicyService) ResetPolicyTree(ctx context.Context, org
|
||||
return f.tree, nil
|
||||
}
|
||||
|
||||
type fakeFailingNotificationPolicyService struct{}
|
||||
type fakeFailingNotificationPolicyService struct {
|
||||
NotificationPolicyService
|
||||
}
|
||||
|
||||
func (f *fakeFailingNotificationPolicyService) GetPolicyTree(ctx context.Context, orgID int64) (definitions.Route, string, error) {
|
||||
return definitions.Route{}, "", fmt.Errorf("something went wrong")
|
||||
@@ -2332,7 +2335,9 @@ func (f *fakeFailingNotificationPolicyService) ResetPolicyTree(ctx context.Conte
|
||||
return definitions.Route{}, fmt.Errorf("something went wrong")
|
||||
}
|
||||
|
||||
type fakeRejectingNotificationPolicyService struct{}
|
||||
type fakeRejectingNotificationPolicyService struct {
|
||||
NotificationPolicyService
|
||||
}
|
||||
|
||||
type fakeRejectingNotificationSettingsValidatorProvider struct{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user