From d3455d0539f69d5d8763121099cff4d3f6926466 Mon Sep 17 00:00:00 2001 From: Shelly Kagan Date: Mon, 15 Jan 2024 14:00:15 +0200 Subject: [PATCH] Add PartnerComp label This label can be used to run tests with focus on tests we consider neccessary to test partner compatibility with kubevirt. To run the tests: make TEST_ARGS="--test-args=-ginkgo.label-filter=PartnerComp" test-functional Signed-off-by: Shelly Kagan --- tests/resource_filtering_test.go | 2 +- tests/vm_backup_test.go | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/tests/resource_filtering_test.go b/tests/resource_filtering_test.go index f2ab7c7b..ef15891e 100644 --- a/tests/resource_filtering_test.go +++ b/tests/resource_filtering_test.go @@ -1086,7 +1086,7 @@ var _ = Describe("Resource includes", func() { Context("[smoke] Standalone VMI", func() { // This test tries to backup on all namespaces, on some clusters it always fails // need to be improved - It("[test_id:10204]Selecting standalone VMI+DV+PVC+Pod: All objects should be restored", func() { + It("[test_id:10204]Selecting standalone VMI+DV+PVC+Pod: All objects should be restored", Label("PartnerComp"), func() { By(fmt.Sprintf("Creating DataVolume %s", dvName)) err := f.CreateDataVolumeWithGuestAgentImage() Expect(err).ToNot(HaveOccurred()) diff --git a/tests/vm_backup_test.go b/tests/vm_backup_test.go index 0b0de6c1..9c8b77d3 100644 --- a/tests/vm_backup_test.go +++ b/tests/vm_backup_test.go @@ -59,7 +59,7 @@ var _ = Describe("[smoke] VM Backup", func() { cancelFunc() }) - It("[test_id:10267]Stopped VM should be restored", func() { + It("[test_id:10267]Stopped VM should be restored", Label("PartnerComp"), func() { By(fmt.Sprintf("Creating DataVolume %s", dvName)) err := f.CreateBlankDataVolume() Expect(err).ToNot(HaveOccurred()) @@ -201,7 +201,7 @@ var _ = Describe("[smoke] VM Backup", func() { }) Context("VM and VMI object graph backup", func() { - It("[test_id:10270]with instancetype and preference", func() { + It("[test_id:10270]with instancetype and preference", Label("PartnerComp"), func() { By("Create instancetype and preference") err := f.CreateInstancetype() Expect(err).ToNot(HaveOccurred()) @@ -266,7 +266,7 @@ var _ = Describe("[smoke] VM Backup", func() { Expect(err).ToNot(HaveOccurred()) }) - It("[test_id:10271]with configmap, secret and serviceaccount", func() { + It("[test_id:10271]with configmap, secret and serviceaccount", Label("PartnerComp"), func() { By("Creating configmap and secret") err := f.CreateConfigMap() Expect(err).ToNot(HaveOccurred()) @@ -322,7 +322,7 @@ var _ = Describe("[smoke] VM Backup", func() { Expect(err).ToNot(HaveOccurred()) }) - It("[test_id:10272]with access credentials", func() { + It("[test_id:10272]with access credentials", Label("PartnerComp"), func() { By("Creating access credentials") err := f.CreateAccessCredentialsSecret() Expect(err).ToNot(HaveOccurred()) @@ -361,10 +361,14 @@ var _ = Describe("[smoke] VM Backup", func() { Expect(err).ToNot(HaveOccurred()) By("Verifying VM") err = framework.WaitForVirtualMachineStatus(f.KvClient, f.Namespace.Name, vm.Name, kvv1.VirtualMachineStatusRunning) + if err != nil { + fmt.Println("SLEEEEEEEEPPP") + time.Sleep(time.Minute * 1000) + } Expect(err).ToNot(HaveOccurred()) }) - It("[test_id:10273]VM with standalone PVC", func() { + It("[test_id:10273]VM with standalone PVC", Label("PartnerComp"), func() { By(fmt.Sprintf("Creating DataVolume %s to create PVC", dvForPVCName)) err := f.CreatePVCUsingDataVolume() Expect(err).ToNot(HaveOccurred()) @@ -424,7 +428,7 @@ var _ = Describe("[smoke] VM Backup", func() { Expect(err).ToNot(HaveOccurred()) }) - It("[test_id:10275]VM with hotplug disk", func() { + It("[test_id:10275]VM with hotplug disk", Label("PartnerComp"), func() { By("Starting a VM") err := f.CreateVMForHotplug() Expect(err).ToNot(HaveOccurred())