Skip to content

Commit 636d591

Browse files
try cvi for legacy
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent 38865cc commit 636d591

22 files changed

Lines changed: 37 additions & 95 deletions

test/e2e/internal/label/label.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ func Slow() Labels {
2727
func TPM() Labels {
2828
return Label("TPM")
2929
}
30+
31+
func Legacy() Labels {
32+
return Label("Legacy")
33+
}

test/e2e/internal/object/const.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ limitations under the License.
1717
package object
1818

1919
const (
20-
ImageURLAlpineUEFI = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-23-3-uefi-base.qcow2"
21-
ImageURLAlpineBIOS = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-23-3-bios-base.qcow2"
22-
ImagesURLAlpineUEFIPerf = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-21-uefi-perf.qcow2"
23-
ImagesURLAlpineBIOSPerf = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-21-bios-perf.qcow2"
24-
ImageURLUbuntu = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/ubuntu/ubuntu-24.04-minimal-cloudimg-amd64.qcow2"
25-
ImageURLContainerImage = "cr.yandex/crpvs5j3nh1mi2tpithr/e2e/alpine/alpine-image:latest"
20+
ImageURLAlpineUEFI = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-23-3-uefi-base.qcow2"
21+
ImageURLAlpineBIOS = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-23-3-bios-base.qcow2"
22+
ImagesURLAlpineUEFIPerf = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-21-uefi-perf.qcow2"
23+
ImagesURLAlpineBIOSPerf = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/alpine/alpine-3-21-bios-perf.qcow2"
24+
ImageURLUbuntu = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/ubuntu/ubuntu-24.04-minimal-cloudimg-amd64.qcow2"
25+
ImageURLContainerImage = "cr.yandex/crpvs5j3nh1mi2tpithr/e2e/alpine/alpine-image:latest"
2626
ImageURLLegacyContainerImage = "cr.yandex/crpvs5j3nh1mi2tpithr/e2e/alpine/alpine-3-20:latest"
27+
ImageURLCirros = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/cirros/cirros-0.5.1.qcow2"
28+
ImageURLUbuntuISO = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/ubuntu/ubuntu-24.04.2-live-server-amd64.iso"
2729
// No bootable
2830
ImageTestDataQCOW = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/test/test.qcow2"
2931
ImageTestDataISO = "https://89d64382-20df-4581-8cc7-80df331f67fa.selstorage.ru/test/test.iso"

test/e2e/internal/object/precreated_cvi.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ const (
2727
PrecreatedCVIAlpineUEFIPerf = "v12n-e2e-alpine-uefi-perf"
2828
PrecreatedCVIAlpineBIOSPerf = "v12n-e2e-alpine-bios-perf"
2929
PrecreatedCVIUbuntu = "v12n-e2e-ubuntu"
30+
PrecreatedCVIUbuntuISO = "v12n-e2e-ubuntu-iso"
3031
PrecreatedCVIContainerImage = "v12n-e2e-container-image"
3132
PrecreatedCVILegacyRegistry = "v12n-e2e-legacy-registry"
33+
PrecreatedCVICirros = "v12n-e2e-cirros"
3234
PrecreatedCVITestDataQCOW = "v12n-e2e-testdata-qcow"
3335
PrecreatedCVITestDataISO = "v12n-e2e-testdata-iso"
3436
)
@@ -41,8 +43,10 @@ func PrecreatedClusterVirtualImages() []*v1alpha2.ClusterVirtualImage {
4143
newPrecreatedHTTPCVI(PrecreatedCVIAlpineUEFIPerf, ImagesURLAlpineUEFIPerf),
4244
newPrecreatedHTTPCVI(PrecreatedCVIAlpineBIOSPerf, ImagesURLAlpineBIOSPerf),
4345
newPrecreatedHTTPCVI(PrecreatedCVIUbuntu, ImageURLUbuntu),
46+
newPrecreatedHTTPCVI(PrecreatedCVIUbuntuISO, ImageURLUbuntuISO),
4447
newPrecreatedContainerImageCVI(PrecreatedCVIContainerImage, ImageURLContainerImage),
4548
newPrecreatedContainerImageCVI(PrecreatedCVILegacyRegistry, ImageURLLegacyContainerImage),
49+
newPrecreatedHTTPCVI(PrecreatedCVICirros, ImageURLCirros),
4650
newPrecreatedHTTPCVI(PrecreatedCVITestDataQCOW, ImageTestDataQCOW),
4751
newPrecreatedHTTPCVI(PrecreatedCVITestDataISO, ImageTestDataISO),
4852
}

test/e2e/legacy/affinity_toleration.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ import (
3131
"github.com/deckhouse/virtualization/api/core/v1alpha2"
3232
"github.com/deckhouse/virtualization/api/core/v1alpha2/vmcondition"
3333
kc "github.com/deckhouse/virtualization/test/e2e/internal/kubectl"
34+
"github.com/deckhouse/virtualization/test/e2e/internal/label"
3435
)
3536

36-
var _ = Describe("VirtualMachineAffinityAndToleration", Ordered, func() {
37+
var _ = Describe("VirtualMachineAffinityAndToleration", Ordered, label.Legacy(), func() {
3738
const (
3839
nodeLabelKey = "kubernetes.io/hostname"
3940
masterLabelKey = "node.deckhouse.io/group"

test/e2e/legacy/complex.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"github.com/deckhouse/virtualization/test/e2e/internal/config"
2929
"github.com/deckhouse/virtualization/test/e2e/internal/framework"
3030
kc "github.com/deckhouse/virtualization/test/e2e/internal/kubectl"
31+
"github.com/deckhouse/virtualization/test/e2e/internal/label"
3132
"github.com/deckhouse/virtualization/test/e2e/internal/util"
3233
)
3334

@@ -36,7 +37,7 @@ const (
3637
antiAffinityLabel = "anti-affinity"
3738
)
3839

39-
var _ = Describe("ComplexTest", Ordered, func() {
40+
var _ = Describe("ComplexTest", Ordered, label.Legacy(), func() {
4041
var (
4142
testCaseLabel = map[string]string{"testcase": "complex-test"}
4243
hasNoConsumerLabel = map[string]string{"hasNoConsumer": "complex-test"}

test/e2e/legacy/image_hotplug.go

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ import (
3131
"github.com/deckhouse/virtualization/test/e2e/internal/d8"
3232
"github.com/deckhouse/virtualization/test/e2e/internal/framework"
3333
kc "github.com/deckhouse/virtualization/test/e2e/internal/kubectl"
34+
"github.com/deckhouse/virtualization/test/e2e/internal/label"
3435
)
3536

36-
var _ = Describe("ImageHotplug", Ordered, func() {
37+
var _ = Describe("ImageHotplug", Ordered, label.Legacy(), func() {
3738
const (
3839
viCount = 2
3940
cviCount = 2
@@ -55,13 +56,6 @@ var _ = Describe("ImageHotplug", Ordered, func() {
5556
ns, err = kustomize.GetNamespace(kustomization)
5657
Expect(err).NotTo(HaveOccurred(), "%w", err)
5758

58-
res := kubectl.Delete(kc.DeleteOptions{
59-
IgnoreNotFound: true,
60-
Labels: testCaseLabel,
61-
Resource: kc.ResourceCVI,
62-
})
63-
Expect(res.Error()).NotTo(HaveOccurred())
64-
6559
CreateNamespace(ns)
6660
})
6761

@@ -88,13 +82,6 @@ var _ = Describe("ImageHotplug", Ordered, func() {
8882
Timeout: MaxWaitTimeout,
8983
})
9084
})
91-
By(fmt.Sprintf("`ClusterVirtualImages` should be in the %q phase", v1alpha2.ImageReady), func() {
92-
WaitPhaseByLabel(kc.ResourceCVI, PhaseReady, kc.WaitOptions{
93-
Labels: testCaseLabel,
94-
Namespace: ns,
95-
Timeout: MaxWaitTimeout,
96-
})
97-
})
9885
By(fmt.Sprintf("`VirtualDisk` should be in the %q phase", v1alpha2.DiskReady), func() {
9986
WaitPhaseByLabel(kc.ResourceVD, PhaseReady, kc.WaitOptions{
10087
Labels: testCaseLabel,

test/e2e/legacy/testdata/complex-test/cvi/cvi-alpine-http.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/e2e/legacy/testdata/complex-test/cvi/cvi-alpine-registry.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/e2e/legacy/testdata/complex-test/cvi/cvi-from-cvi-alpine-http.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/e2e/legacy/testdata/complex-test/cvi/cvi-from-vi-alpine-http.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)