test: add unit test for GenerateScaledObjectName #8317
Annotations
3 errors and 1 warning
Verify goimports:
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"
)
|
Verify goimports:
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) {
|
Verify goimports
Process completed with exit code 1.
|
Set up Go
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum
|
Loading