Skip to content

Commit

Permalink
Mark all tests as have to be run in serial
Browse files Browse the repository at this point in the history
As a first step, every package needs to be checked if it can run in
parallel. To allow white-listing packages one-by-one, first mark all as
have to be run in serial.

Signed-off-by: rmohr <[email protected]>
  • Loading branch information
rmohr committed Sep 23, 2020
1 parent d5f338a commit f371b25
Show file tree
Hide file tree
Showing 45 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion tests/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"kubevirt.io/kubevirt/tests"
)

var _ = Describe("[rfe_id:500][crit:high][vendor:[email protected]][level:component]User Access", func() {
var _ = Describe("[Serial][rfe_id:500][crit:high][vendor:[email protected]][level:component]User Access", func() {

view := tests.ViewServiceAccountName
edit := tests.EditServiceAccountName
Expand Down
2 changes: 1 addition & 1 deletion tests/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:899][crit:medium][vendor:[email protected]][level:component]Config", func() {
var _ = Describe("[Serial][rfe_id:899][crit:medium][vendor:[email protected]][level:component]Config", func() {

var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/console_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:127][posneg:negative][crit:medium][vendor:[email protected]][level:component]Console", func() {
var _ = Describe("[Serial][rfe_id:127][posneg:negative][crit:medium][vendor:[email protected]][level:component]Console", func() {

var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/container_disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:588][crit:medium][vendor:[email protected]][level:component]ContainerDisk", func() {
var _ = Describe("[Serial][rfe_id:588][crit:medium][vendor:[email protected]][level:component]ContainerDisk", func() {

var virtClient kubecli.KubevirtClient
var err error
Expand Down
2 changes: 1 addition & 1 deletion tests/datavolume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import (
const InvalidDataVolumeUrl = "http://127.0.0.1/invalid"
const DummyFilePath = "/usr/share/nginx/html/dummy.file"

var _ = Describe("DataVolume Integration", func() {
var _ = Describe("[Serial]DataVolume Integration", func() {

var virtClient kubecli.KubevirtClient
var err error
Expand Down
2 changes: 1 addition & 1 deletion tests/expose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func newLabeledVMI(label string, virtClient kubecli.KubevirtClient, createVMI bo
return
}

var _ = Describe("[rfe_id:253][crit:medium][vendor:[email protected]][level:component]Expose", func() {
var _ = Describe("[Serial][rfe_id:253][crit:medium][vendor:[email protected]][level:component]Expose", func() {

var virtClient kubecli.KubevirtClient
var err error
Expand Down
2 changes: 1 addition & 1 deletion tests/imageupload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
imagePath = "/tmp/alpine.iso"
)

var _ = Describe("ImageUpload", func() {
var _ = Describe("[Serial]ImageUpload", func() {
var kubectlCmd *exec.Cmd

namespace := tests.NamespaceTestDefault
Expand Down
2 changes: 1 addition & 1 deletion tests/infra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import (
"kubevirt.io/kubevirt/tests/flags"
)

var _ = Describe("Infrastructure", func() {
var _ = Describe("[Serial]Infrastructure", func() {
var virtClient kubecli.KubevirtClient
var aggregatorClient *aggregatorclient.Clientset
var err error
Expand Down
2 changes: 1 addition & 1 deletion tests/kubectl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"kubevirt.io/kubevirt/tests"
)

var _ = Describe("[rfe_id:3423][vendor:[email protected]][level:component]oc/kubectl get vm/vmi tests", func() {
var _ = Describe("[Serial][rfe_id:3423][vendor:[email protected]][level:component]oc/kubectl get vm/vmi tests", func() {
var k8sClient, result string
var vm *v1.VirtualMachine
var virtCli kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const (
secretDiskSerial = "D23YZ9W6WA5DJ487"
)

var _ = Describe("[rfe_id:393][crit:high][vendor:[email protected]][level:system] VM Live Migration", func() {
var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:[email protected]][level:system] VM Live Migration", func() {
var virtClient kubecli.KubevirtClient

var originalKubeVirtConfig *k8sv1.ConfigMap
Expand Down
2 changes: 1 addition & 1 deletion tests/network/primary_pod_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = SIGDescribe("Primary Pod Network", func() {
var _ = SIGDescribe("[Serial]Primary Pod Network", func() {
var virtClient kubecli.KubevirtClient

BeforeEach(func() {
Expand Down
2 changes: 1 addition & 1 deletion tests/network/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type vmiServiceManager struct {
labelValue string
}

var _ = SIGDescribe("Services", func() {
var _ = SIGDescribe("[Serial]Services", func() {
var virtClient kubecli.KubevirtClient

runTCPClientExpectingHelloWorldFromServer := func(host, port, namespace string) *batchv1.Job {
Expand Down
2 changes: 1 addition & 1 deletion tests/networkpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"kubevirt.io/kubevirt/tests/libvmi"
)

var _ = Describe("[rfe_id:150][crit:high][vendor:[email protected]][level:component]Networkpolicy", func() {
var _ = Describe("[Serial][rfe_id:150][crit:high][vendor:[email protected]][level:component]Networkpolicy", func() {
var (
virtClient kubecli.KubevirtClient
serverVMI, clientVMI, clientVMIAlternativeNamespace *v1.VirtualMachineInstance
Expand Down
2 changes: 1 addition & 1 deletion tests/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type vmYamlDefinition struct {
yamlFile string
}

var _ = Describe("Operator", func() {
var _ = Describe("[Serial]Operator", func() {
var originalKv *v1.KubeVirt
var originalCDI *cdiv1.CDI
var originalKubeVirtConfig *k8sv1.ConfigMap
Expand Down
2 changes: 1 addition & 1 deletion tests/pausing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:3064][crit:medium][vendor:[email protected]][level:component]Pausing", func() {
var _ = Describe("[Serial][rfe_id:3064][crit:medium][vendor:[email protected]][level:component]Pausing", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/probes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"kubevirt.io/kubevirt/tests/libnet"
)

var _ = Describe("[ref_id:1182]Probes", func() {
var _ = Describe("[Serial][ref_id:1182]Probes", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/replicaset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:588][crit:medium][vendor:[email protected]][level:component]VirtualMachineInstanceReplicaSet", func() {
var _ = Describe("[Serial][rfe_id:588][crit:medium][vendor:[email protected]][level:component]VirtualMachineInstanceReplicaSet", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("VirtualMachineRestore Tests", func() {
var _ = Describe("[Serial]VirtualMachineRestore Tests", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/security_features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"kubevirt.io/kubevirt/tests/flags"
)

var _ = Describe("SecurityFeatures", func() {
var _ = Describe("[Serial]SecurityFeatures", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("VirtualMachineSnapshot Tests", func() {
var _ = Describe("[Serial]VirtualMachineSnapshot Tests", func() {

var (
err error
Expand Down
2 changes: 1 addition & 1 deletion tests/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const (

type VMICreationFunc func(string) *v1.VirtualMachineInstance

var _ = Describe("Storage", func() {
var _ = Describe("[Serial]Storage", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/subresource_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"kubevirt.io/kubevirt/tests/flags"
)

var _ = Describe("Subresource Api", func() {
var _ = Describe("[Serial]Subresource Api", func() {

var err error
var virtCli kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
defaultMemory = "2Gi"
)

var _ = Describe("Templates", func() {
var _ = Describe("[Serial]Templates", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"kubevirt.io/kubevirt/tests"
)

var _ = Describe("Version", func() {
var _ = Describe("[Serial]Version", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/virt_control_plane_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const (
labelValue = "selected"
)

var _ = Describe("[ref_id:2717]KubeVirt control plane resilience", func() {
var _ = Describe("[Serial][ref_id:2717]KubeVirt control plane resilience", func() {

var err error
var virtCli kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import (
"kubevirt.io/kubevirt/tests/flags"
)

var _ = Describe("[rfe_id:1177][crit:medium][vendor:[email protected]][level:component]VirtualMachine", func() {
var _ = Describe("[Serial][rfe_id:1177][crit:medium][vendor:[email protected]][level:component]VirtualMachine", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vm_watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func createCommandWithNSAndRedirect(namespace, cmdName string, args ...string) (
return cmd, stdOut, stdErr, nil
}

var _ = Describe("[rfe_id:3423][crit:high][vendor:[email protected]][level:component]VmWatch", func() {
var _ = Describe("[Serial][rfe_id:3423][crit:high][vendor:[email protected]][level:component]VmWatch", func() {
var err error
var virtCli kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_cloudinit_hook_sidecar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (

const cloudinitHookSidecarImage = "example-cloudinit-hook-sidecar"

var _ = Describe("CloudInitHookSidecars", func() {
var _ = Describe("[Serial]CloudInitHookSidecars", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_cloudinit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const (
testUserData = "#cloud-config"
)

var _ = Describe("[rfe_id:151][crit:high][vendor:[email protected]][level:component]CloudInit UserData", func() {
var _ = Describe("[Serial][rfe_id:151][crit:high][vendor:[email protected]][level:component]CloudInit UserData", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import (
"kubevirt.io/kubevirt/tests/flags"
)

var _ = Describe("Configurations", func() {
var _ = Describe("[Serial]Configurations", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_gpu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func checkGPUDevice(vmi *v1.VirtualMachineInstance, gpuName string, prompt strin
Expect(err).ToNot(HaveOccurred(), "GPU device %q was not found in the VMI %s within the given timeout", gpuName, vmi.Name)
}

var _ = Describe("GPU", func() {
var _ = Describe("[Serial]GPU", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_headless_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:609]VMIheadless", func() {
var _ = Describe("[Serial][rfe_id:609]VMIheadless", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_hook_sidecar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (

const hookSidecarImage = "example-hook-sidecar"

var _ = Describe("HookSidecars", func() {
var _ = Describe("[Serial]HookSidecars", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_ignition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:151][crit:high][vendor:[email protected]][level:component]IgnitionData", func() {
var _ = Describe("[Serial][rfe_id:151][crit:high][vendor:[email protected]][level:component]IgnitionData", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_iothreads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("IOThreads", func() {
var _ = Describe("[Serial]IOThreads", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func addNodeAffinityToVMI(vmi *v1.VirtualMachineInstance, nodeName string) {
}
}

var _ = Describe("[rfe_id:273][crit:high][vendor:[email protected]][level:component]VMIlifecycle", func() {
var _ = Describe("[Serial][rfe_id:273][crit:high][vendor:[email protected]][level:component]VMIlifecycle", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_monitoring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"kubevirt.io/kubevirt/tests"
)

var _ = Describe("Health Monitoring", func() {
var _ = Describe("[Serial]Health Monitoring", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_multiqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("MultiQueue", func() {
var _ = Describe("[Serial]MultiQueue", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
4 changes: 2 additions & 2 deletions tests/vmi_multus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const (
sriovLinkEnableConfCRD = `{"apiVersion":"k8s.cni.cncf.io/v1","kind":"NetworkAttachmentDefinition","metadata":{"name":"%s","namespace":"%s","annotations":{"k8s.v1.cni.cncf.io/resourceName":"%s"}},"spec":{"config":"{ \"cniVersion\": \"0.3.1\", \"name\": \"sriov\", \"type\": \"sriov\", \"link_state\": \"enable\", \"ipam\": { \"type\": \"host-local\", \"subnet\": \"10.1.1.0/24\" } }"}}`
)

var _ = Describe("Multus", func() {
var _ = Describe("[Serial]Multus", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down Expand Up @@ -565,7 +565,7 @@ var _ = Describe("Multus", func() {
})
})

var _ = Describe("SRIOV", func() {
var _ = Describe("[Serial]SRIOV", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_networking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (
"kubevirt.io/kubevirt/tests/flags"
)

var _ = Describe("[rfe_id:694][crit:medium][vendor:[email protected]][level:component]Networking", func() {
var _ = Describe("[Serial][rfe_id:694][crit:medium][vendor:[email protected]][level:component]Networking", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmi_slirp_interface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("Slirp Networking", func() {
var _ = Describe("[Serial]Slirp Networking", func() {

var err error
var virtClient kubecli.KubevirtClient
Expand Down
2 changes: 1 addition & 1 deletion tests/vmidefaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"kubevirt.io/kubevirt/tests"
)

var _ = Describe("VMIDefaults", func() {
var _ = Describe("[Serial]VMIDefaults", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
2 changes: 1 addition & 1 deletion tests/vmipreset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
cd "kubevirt.io/kubevirt/tests/containerdisk"
)

var _ = Describe("[rfe_id:609][crit:medium][vendor:[email protected]][level:component]VMIPreset", func() {
var _ = Describe("[Serial][rfe_id:609][crit:medium][vendor:[email protected]][level:component]VMIPreset", func() {
var err error
var virtClient kubecli.KubevirtClient

Expand Down
Loading

0 comments on commit f371b25

Please sign in to comment.