diff --git a/tests/network/macvtap.go b/tests/network/macvtap.go index a637bbba44b9..835193ffd756 100644 --- a/tests/network/macvtap.go +++ b/tests/network/macvtap.go @@ -39,6 +39,8 @@ import ( v1 "kubevirt.io/api/core/v1" "kubevirt.io/client-go/kubecli" + "kubevirt.io/kubevirt/pkg/virt-config/deprecation" + "kubevirt.io/kubevirt/tests" "kubevirt.io/kubevirt/tests/console" "kubevirt.io/kubevirt/tests/framework/checks" @@ -49,7 +51,7 @@ import ( "kubevirt.io/kubevirt/tests/testsuite" ) -var _ = SIGDescribe("Macvtap", decorators.Macvtap, func() { +var _ = SIGDescribe("Macvtap", decorators.Macvtap, Serial, func() { const ( macvtapLowerDevice = "eth0" macvtapNetworkName = "net1" @@ -61,6 +63,10 @@ var _ = SIGDescribe("Macvtap", decorators.Macvtap, func() { virtClient = kubevirt.Client() }) + BeforeEach(func() { + tests.EnableFeatureGate(deprecation.MacvtapGate) + }) + BeforeEach(func() { ns := testsuite.GetTestNamespace(nil) Expect(libnet.CreateMacvtapNetworkAttachmentDefinition(ns, macvtapNetworkName, macvtapLowerDevice)).To(Succeed(), diff --git a/tests/testsuite/kubevirtresource.go b/tests/testsuite/kubevirtresource.go index 8f45959f95d9..a72c469cd6ce 100644 --- a/tests/testsuite/kubevirtresource.go +++ b/tests/testsuite/kubevirtresource.go @@ -42,7 +42,6 @@ import ( "kubevirt.io/client-go/kubecli" virtconfig "kubevirt.io/kubevirt/pkg/virt-config" - "kubevirt.io/kubevirt/pkg/virt-config/deprecation" "kubevirt.io/kubevirt/tests/flags" "kubevirt.io/kubevirt/tests/framework/checks" "kubevirt.io/kubevirt/tests/util" @@ -103,7 +102,6 @@ func AdjustKubeVirtResource() { virtconfig.HotplugVolumesGate, virtconfig.DownwardMetricsFeatureGate, virtconfig.NUMAFeatureGate, - deprecation.MacvtapGate, virtconfig.ExpandDisksGate, virtconfig.WorkloadEncryptionSEV, virtconfig.VMExportGate,