mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00

* sigs.k8s.io/controller-runtime/pkg/runtime/* packages are deprecated, and were moved to new paths. Trying to upgrade sigs.k8s.io/controller-runtime to version v0.7.0 in HCO created a conflict because in v0.7.0 the deprecated packages were removed and cannot be used. This PR replaces the deprecated packages with their new paths. Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com> * Run `make deps-update` Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com> * fix logger init Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com> * fix test loggers Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
23 lines
519 B
Go
23 lines
519 B
Go
package controller_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
|
|
logf "sigs.k8s.io/controller-runtime/pkg/log"
|
|
"sigs.k8s.io/controller-runtime/pkg/log/zap"
|
|
|
|
"kubevirt.io/containerized-data-importer/tests/reporters"
|
|
)
|
|
|
|
var _ = BeforeSuite(func() {
|
|
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))
|
|
})
|
|
|
|
func TestController(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecsWithDefaultAndCustomReporters(t, "Controller Suite", reporters.NewReporters())
|
|
}
|