fix duplicate when using self-service #708
ci.yaml
on: pull_request
Lint Go code
23s
test
1m 23s
Annotations
11 errors
Lint Go code:
pkg/controller/controller.go#L1
: # github.com/argoproj/notifications-engine/pkg/controller [github.com/argoproj/notifications-engine/pkg/controller.test]
|
Lint Go code:
pkg/controller/controller_test.go#L93
cannot use mockAPI (variable of type *mocks.MockAPI) as "github.com/argoproj/notifications-engine/pkg/api".API value in struct literal: *mocks.MockAPI does not implement "github.com/argoproj/notifications-engine/pkg/api".API (missing method SetConfig)
|
Lint Go code:
pkg/controller/controller_test.go#L118
cannot use api (variable of type *mocks.MockAPI) as "github.com/argoproj/notifications-engine/pkg/api".API value in argument to ctrl.processResourceWithAPI: *mocks.MockAPI does not implement "github.com/argoproj/notifications-engine/pkg/api".API (missing method SetConfig)
|
Lint Go code:
pkg/controller/controller_test.go#L126
not enough arguments in call to StateItemKey
|
Lint Go code:
pkg/controller/controller_test.go#L134
not enough arguments in call to state.SetAlreadyNotified
|
Lint Go code:
pkg/controller/controller_test.go#L144
cannot use api (variable of type *mocks.MockAPI) as "github.com/argoproj/notifications-engine/pkg/api".API value in argument to ctrl.processResourceWithAPI: *mocks.MockAPI does not implement "github.com/argoproj/notifications-engine/pkg/api".API (missing method SetConfig)
|
Lint Go code:
pkg/controller/controller_test.go#L156
not enough arguments in call to state.SetAlreadyNotified
|
Lint Go code:
pkg/controller/controller_test.go#L166
cannot use api (variable of type *mocks.MockAPI) as "github.com/argoproj/notifications-engine/pkg/api".API value in argument to ctrl.processResourceWithAPI: *mocks.MockAPI does not implement "github.com/argoproj/notifications-engine/pkg/api".API (missing method SetConfig)
|
Lint Go code:
pkg/controller/controller_test.go#L180
not enough arguments in call to state.SetAlreadyNotified
|
Lint Go code:
pkg/controller/controller_test.go#L328
cannot use api (variable of type *mocks.MockAPI) as "github.com/argoproj/notifications-engine/pkg/api".API value in struct literal: *mocks.MockAPI does not implement "github.com/argoproj/notifications-engine/pkg/api".API (missing method SetConfig)
|
test
Process completed with exit code 1.
|