Skip to content

Commit

Permalink
test/e2e: set logger
Browse files Browse the repository at this point in the history
  • Loading branch information
adilGhaffarDev committed May 30, 2023
1 parent a5411d7 commit fef411c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/klog/v2"
clusterv1alpha4 "sigs.k8s.io/cluster-api/api/v1alpha4"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/jinzhu/copier"
"gopkg.in/yaml.v3"
Expand Down Expand Up @@ -95,6 +97,7 @@ func init() {
}

func TestE2e(t *testing.T) {
ctrl.SetLogger(klog.Background())
RegisterFailHandler(Fail)
RunSpecs(t, "E2e Suite")
}
Expand Down
2 changes: 1 addition & 1 deletion test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
k8s.io/api v0.27.2
k8s.io/apimachinery v0.27.2
k8s.io/client-go v0.27.2
k8s.io/klog/v2 v2.90.1
k8s.io/utils v0.0.0-20230209194617-a36077c30491
sigs.k8s.io/cluster-api v1.4.2
sigs.k8s.io/cluster-api/test v1.4.2
Expand Down Expand Up @@ -127,7 +128,6 @@ require (
k8s.io/apiserver v0.27.2 // indirect
k8s.io/cluster-bootstrap v0.25.4 // indirect
k8s.io/component-base v0.27.2 // indirect
k8s.io/klog/v2 v2.90.1 // indirect
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kind v0.18.0 // indirect
Expand Down

0 comments on commit fef411c

Please sign in to comment.