Skip to content

Commit

Permalink
net, admitter: Add test suite to run the unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Haas <[email protected]>
  • Loading branch information
EdDev committed Mar 25, 2024
1 parent 96f681f commit 3c34ca4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/network/admitter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 30 additions & 0 deletions pkg/network/admitter/admit_suite_test.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 3c34ca4

Please sign in to comment.