Skip to content

Commit

Permalink
Add PartnerComp label
Browse files Browse the repository at this point in the history
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 <skagan@redhat.com>
  • Loading branch information
ShellyKa13 committed Jan 15, 2024
1 parent edd3ad8 commit d3455d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/resource_filtering_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
16 changes: 10 additions & 6 deletions tests/vm_backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit d3455d0

Please sign in to comment.