diff --git a/tests/BUILD.bazel b/tests/BUILD.bazel index caf0ec167fe6..1dcaafef09a2 100644 --- a/tests/BUILD.bazel +++ b/tests/BUILD.bazel @@ -118,7 +118,6 @@ go_test( "container_disk_test.go", "credentials_test.go", "datavolume_test.go", - "expose_test.go", "imageupload_test.go", "infra_test.go", "kubectl_test.go", @@ -184,7 +183,6 @@ go_test( "//pkg/virt-launcher/virtwrap/converter:go_default_library", "//pkg/virt-operator/resource/generate/components:go_default_library", "//pkg/virt-operator/util:go_default_library", - "//pkg/virtctl/expose:go_default_library", "//pkg/virtctl/vm:go_default_library", "//staging/src/kubevirt.io/client-go/api/v1:go_default_library", "//staging/src/kubevirt.io/client-go/apis/snapshot/v1alpha1:go_default_library", @@ -219,7 +217,6 @@ go_test( "//vendor/k8s.io/api/apps/v1:go_default_library", "//vendor/k8s.io/api/authorization/v1:go_default_library", "//vendor/k8s.io/api/autoscaling/v1:go_default_library", - "//vendor/k8s.io/api/batch/v1:go_default_library", "//vendor/k8s.io/api/core/v1:go_default_library", "//vendor/k8s.io/api/policy/v1beta1:go_default_library", "//vendor/k8s.io/api/rbac/v1:go_default_library", diff --git a/tests/network/BUILD.bazel b/tests/network/BUILD.bazel index 439e9e66735c..66511140b55a 100644 --- a/tests/network/BUILD.bazel +++ b/tests/network/BUILD.bazel @@ -4,6 +4,7 @@ go_library( name = "go_default_library", srcs = [ "dual_stack_cluster.go", + "expose.go", "framework.go", "networkpolicy.go", "primary_pod_network.go", @@ -18,6 +19,7 @@ go_library( "//pkg/virt-config:go_default_library", "//pkg/virt-controller/services:go_default_library", "//pkg/virt-launcher/virtwrap/api:go_default_library", + "//pkg/virtctl/expose:go_default_library", "//staging/src/kubevirt.io/client-go/api/v1:go_default_library", "//staging/src/kubevirt.io/client-go/kubecli:go_default_library", "//staging/src/kubevirt.io/client-go/log:go_default_library", @@ -40,6 +42,7 @@ go_library( "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/rand:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library", "//vendor/k8s.io/utils/net:go_default_library", "//vendor/k8s.io/utils/pointer:go_default_library", diff --git a/tests/expose_test.go b/tests/network/expose.go similarity index 99% rename from tests/expose_test.go rename to tests/network/expose.go index 18fbc6fe543b..9de084720d86 100644 --- a/tests/expose_test.go +++ b/tests/network/expose.go @@ -1,4 +1,4 @@ -package tests_test +package network import ( "context"