Skip to content

Authenticate and log users #314

Authenticate and log users

Authenticate and log users #314

Triggered via pull request October 2, 2024 06:40
Status Failure
Total duration 2m 38s
Artifacts

pr.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors
Report Changes In Swagger Spec
Process completed with exit code 128.
Build
Process completed with exit code 1.
Lint: main.go#L164
config.PrometheusUrl undefined (type "github.com/equinor/radix-api/internal/config".Config has no field or method PrometheusUrl) (typecheck)
Lint: api/applications/applications_controller_test.go#L2025
cannot use NewApplicationController(func(_ context.Context, _ kubernetes.Interface, _ v1.RadixRegistration) (bool, error) {…}, newTestApplicationHandlerFactory(ApplicationHandlerConfig{…}, func(ctx context.Context, kubeClient kubernetes.Interface, namespace string, configMapName string) (bool, error) {…}), prometheusHandlerMock) (value of type "github.com/equinor/radix-api/models".Controller) as *"github.com/equinor/radix-api/api/utils/token/mock".MockValidatorInterface value in argument to controllertest.NewTestUtils
Lint: api/applications/applications_controller_test.go#L2027
undefined: ApplicationHandlerConfig (typecheck)
Lint: api/middleware/auth/authentication_test.go#L83
not enough arguments in call to applications.NewApplicationController
Lint
issues found
Unit Test: main.go#L164
config.PrometheusUrl undefined (type "github.com/equinor/radix-api/internal/config".Config has no field or method PrometheusUrl)
Unit Test: api/applications/applications_controller_test.go#L2025
cannot use NewApplicationController(func(_ context.Context, _ kubernetes.Interface, _ v1.RadixRegistration) (bool, error) {…}, newTestApplicationHandlerFactory(ApplicationHandlerConfig{…}, func(ctx context.Context, kubeClient kubernetes.Interface, namespace string, configMapName string) (bool, error) {…}), prometheusHandlerMock) (value of type "github.com/equinor/radix-api/models".Controller) as *"github.com/equinor/radix-api/api/utils/token/mock".MockValidatorInterface value in argument to controllertest.NewTestUtils
Unit Test: api/applications/applications_controller_test.go#L2027
undefined: ApplicationHandlerConfig
Unit Test: api/middleware/auth/authentication_test.go#L83
not enough arguments in call to applications.NewApplicationController
Unit Test
Process completed with exit code 1.