Skip to content

Commit

Permalink
[e2e tests]: Decorate vTPM tests with RWX FS storage requirement
Browse files Browse the repository at this point in the history
This way the kubevirt tests can not pick up these tests when
a cluster does not have an RWX FS storage solution.

Signed-off-by: Alex Kalenyuk <[email protected]>
  • Loading branch information
akalenyu committed Aug 9, 2023
1 parent 865a463 commit 1ca668f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
39 changes: 20 additions & 19 deletions tests/decorators/decorators.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,24 @@ var (
KSMRequired = []interface{}{Label("KSM-required")}

// Features
Sysprep = []interface{}{Label("Sysprep")}
Windows = []interface{}{Label("Windows")}
Networking = []interface{}{Label("Networking")}
VMIlifecycle = []interface{}{Label("VMIlifecycle")}
Expose = []interface{}{Label("Expose")}
NonRoot = []interface{}{Label("verify-non-root")}
NativeSsh = []interface{}{Label("native-ssh")}
ExcludeNativeSsh = []interface{}{Label("exclude-native-ssh")}
Reenlightenment = []interface{}{Label("Reenlightenment")}
TscFrequencies = []interface{}{Label("TscFrequencies")}
PasstGate = []interface{}{Label("PasstGate")}
VMX = []interface{}{Label("VMX")}
Upgrade = []interface{}{Label("Upgrade")}
CustomSELinux = []interface{}{Label("CustomSELinux")}
Istio = []interface{}{Label("Istio")}
InPlaceHotplugNICs = []interface{}{Label("in-place-hotplug-NICs")}
MigrationBasedHotplugNICs = []interface{}{Label("migration-based-hotplug-NICs")}
RequiresTwoSchedulableNodes = []interface{}{Label("requires-two-schedulable-nodes")}
VMLiveUpdateFeaturesGate = []interface{}{Label("VMLiveUpdateFeaturesGate")}
Sysprep = []interface{}{Label("Sysprep")}
Windows = []interface{}{Label("Windows")}
Networking = []interface{}{Label("Networking")}
VMIlifecycle = []interface{}{Label("VMIlifecycle")}
Expose = []interface{}{Label("Expose")}
NonRoot = []interface{}{Label("verify-non-root")}
NativeSsh = []interface{}{Label("native-ssh")}
ExcludeNativeSsh = []interface{}{Label("exclude-native-ssh")}
Reenlightenment = []interface{}{Label("Reenlightenment")}
TscFrequencies = []interface{}{Label("TscFrequencies")}
PasstGate = []interface{}{Label("PasstGate")}
VMX = []interface{}{Label("VMX")}
Upgrade = []interface{}{Label("Upgrade")}
CustomSELinux = []interface{}{Label("CustomSELinux")}
Istio = []interface{}{Label("Istio")}
InPlaceHotplugNICs = []interface{}{Label("in-place-hotplug-NICs")}
MigrationBasedHotplugNICs = []interface{}{Label("migration-based-hotplug-NICs")}
RequiresTwoSchedulableNodes = []interface{}{Label("requires-two-schedulable-nodes")}
VMLiveUpdateFeaturesGate = []interface{}{Label("VMLiveUpdateFeaturesGate")}
RequiresRWXFilesystemStorage = []interface{}{Label("rwxfs")}
)
2 changes: 1 addition & 1 deletion tests/vm_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"kubevirt.io/kubevirt/tests/libwait"
)

var _ = Describe("[sig-storage]VM state", decorators.SigStorage, func() {
var _ = Describe("[sig-storage]VM state", decorators.SigStorage, decorators.RequiresRWXFilesystemStorage, func() {
var virtClient kubecli.KubevirtClient
var err error

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

var _ = Describe("[sig-compute]vTPM", decorators.SigCompute, func() {
var _ = Describe("[sig-compute]vTPM", decorators.SigCompute, decorators.RequiresRWXFilesystemStorage, func() {
var virtClient kubecli.KubevirtClient
var err error

Expand Down

0 comments on commit 1ca668f

Please sign in to comment.