diff --git a/pkg/network/admitter/BUILD.bazel b/pkg/network/admitter/BUILD.bazel index fe6be7f208af..a06b94ea6792 100644 --- a/pkg/network/admitter/BUILD.bazel +++ b/pkg/network/admitter/BUILD.bazel @@ -15,11 +15,15 @@ go_library( go_test( name = "go_default_test", - srcs = ["admit_test.go"], + srcs = [ + "admit_suite_test.go", + "admit_test.go", + ], deps = [ ":go_default_library", "//staging/src/kubevirt.io/api/core/v1:go_default_library", "//staging/src/kubevirt.io/client-go/api:go_default_library", + "//staging/src/kubevirt.io/client-go/testutils:go_default_library", "//vendor/github.com/onsi/ginkgo/v2:go_default_library", "//vendor/github.com/onsi/gomega:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", diff --git a/pkg/network/admitter/admit_suite_test.go b/pkg/network/admitter/admit_suite_test.go new file mode 100644 index 000000000000..38696fc13c1e --- /dev/null +++ b/pkg/network/admitter/admit_suite_test.go @@ -0,0 +1,30 @@ +/* + * This file is part of the KubeVirt project + * + * 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. + * + * Copyright 2024 Red Hat, Inc. + * + */ + +package admitter_test + +import ( + "testing" + + "kubevirt.io/client-go/testutils" +) + +func TestAdmitter(t *testing.T) { + testutils.KubeVirtTestSuiteSetup(t) +}