Skip to content

fix duplicate when using self-service #708

fix duplicate when using self-service

fix duplicate when using self-service #708

Triggered via pull request October 8, 2023 00:03
Status Failure
Total duration 1m 31s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

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.