Skip to content

test: add unit test for GenerateScaledObjectName #8317

test: add unit test for GenerateScaledObjectName

test: add unit test for GenerateScaledObjectName #8317

Triggered via pull request May 11, 2024 01:35
Status Failure
Total duration 3m 53s
Artifacts

knative-style.yaml

on: pull_request
style  /  changes
2s
style / changes
style  /  ...  /  Auto-format and Check
1m 58s
style / Golang / Auto-format and Check
style  /  ...  /  Lint
3m 33s
style / Golang / Lint
style  /  ...  /  Do Not Submit
8s
style / Golang / Do Not Submit
style  /  ...  /  shell
0s
style / suggester / shell
style  /  ...  /  yaml
0s
style / suggester / yaml
style  /  ...  /  github_actions
0s
style / suggester / github_actions
Matrix: style / Golang / Boilerplate Check
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 4 warnings
style / Golang / Boilerplate Check (go): control-plane/pkg/autoscaler/keda/mocks/keda_mock.go#L1
[Go headers] reported by reviewdog 🐶 missing boilerplate: Raw Output: control-plane/pkg/autoscaler/keda/mocks/keda_mock.go:1: missing boilerplate: /* * Copyright 2024 The Knative Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
style / Golang / Boilerplate Check (go): control-plane/pkg/autoscaler/keda/resources_test.go#L1
[Go headers] reported by reviewdog 🐶 missing boilerplate: Raw Output: control-plane/pkg/autoscaler/keda/resources_test.go:1: missing boilerplate: /* * Copyright 2024 The Knative Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
style / Golang / Boilerplate Check (go)
Process completed with exit code 1.
style / Golang / Auto-format and Check: control-plane/pkg/autoscaler/keda/mocks/keda_mock.go#L1
Please run goimports. diff --git a/control-plane/pkg/autoscaler/keda/mocks/keda_mock.go b/control-plane/pkg/autoscaler/keda/mocks/keda_mock.go index 0b36835..3a283e5 100644 --- a/control-plane/pkg/autoscaler/keda/mocks/keda_mock.go +++ b/control-plane/pkg/autoscaler/keda/mocks/keda_mock.go @@ -2,7 +2,7 @@ package mocks import ( "github.com/google/uuid" - "k8s.io/apimachinery/pkg/apis/meta/v1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" )
style / Golang / Auto-format and Check: control-plane/pkg/autoscaler/keda/resources_test.go#L1
Please run goimports. diff --git a/control-plane/pkg/autoscaler/keda/resources_test.go b/control-plane/pkg/autoscaler/keda/resources_test.go index 968cceb..a8873f9 100644 --- a/control-plane/pkg/autoscaler/keda/resources_test.go +++ b/control-plane/pkg/autoscaler/keda/resources_test.go @@ -1,11 +1,12 @@ package keda import ( + "strings" + "testing" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "knative.dev/eventing-kafka-broker/control-plane/pkg/autoscaler/keda/mocks" - "strings" - "testing" ) func TestGenerateScaledObjectName(t *testing.T) {
style / Golang / Auto-format and Check
Process completed with exit code 1.
style / Golang / Boilerplate Check (sh)
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum
style / Golang / Boilerplate Check (go)
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum
style / Golang / Auto-format and Check
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum
style / Golang / Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum