File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ func (c *notificationController) processQueueItem() (processNext bool) {
320
320
if c .factorySupport {
321
321
apisWithNamespace , err := c .apiFactory .GetAPIsFromFactory (resource )
322
322
if err != nil {
323
- logEntry .Errorf ("Failed to get api with namespace : %v" , err )
323
+ logEntry .Errorf ("Failed to get api with key : %v" , err )
324
324
eventSequence .addError (err )
325
325
}
326
326
for _ , api := range apisWithNamespace {
Original file line number Diff line number Diff line change 1
1
package mocks
2
2
3
- import "github.com/argoproj/notifications-engine/pkg/api"
3
+ import (
4
+ "fmt"
5
+ "github.com/argoproj/notifications-engine/pkg/api"
6
+ )
4
7
5
8
type FakeFactory struct {
6
9
Api api.API
@@ -16,3 +19,7 @@ func (f *FakeFactory) GetAPIsFromNamespace(namespace string) (map[string]api.API
16
19
apiMap [namespace ] = f .Api
17
20
return apiMap , f .Err
18
21
}
22
+
23
+ func (f * FakeFactory ) GetAPIsFromFactory (resource interface {}) (map [string ]api.API , error ) {
24
+ return nil , fmt .Errorf ("not implemented" )
25
+ }
You can’t perform that action at this time.
0 commit comments