forked from kubevirt/hyperconverged-cluster-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support labels in e2e tests (kubevirt#2860)
This PR add the GINKGO_LABELS environment variable so we could use labels in order filter functional tests, instead of using `Skip()` within the test logic. Signed-off-by: Nahshon Unna-Tsameret <[email protected]>
- Loading branch information
Showing
11 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,12 @@ import ( | |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/client-go/kubernetes/scheme" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
"kubevirt.io/client-go/kubecli" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
) | ||
|
||
var _ = Describe("[rfe_id:5100][crit:medium][vendor:[email protected]][level:system]HyperConverged Cluster Operator should create ConsoleCliDownload objects", func() { | ||
var _ = Describe("[rfe_id:5100][crit:medium][vendor:[email protected]][level:system]HyperConverged Cluster Operator should create ConsoleCliDownload objects", Label("OpenShift"), func() { | ||
flag.Parse() | ||
|
||
BeforeEach(func() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,12 @@ import ( | |
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/client-go/kubernetes/scheme" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
"kubevirt.io/client-go/kubecli" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
) | ||
|
||
var _ = Describe("[rfe_id:5108][crit:medium][vendor:[email protected]][level:system]Dashboard configmaps", func() { | ||
var _ = Describe("[rfe_id:5108][crit:medium][vendor:[email protected]][level:system]Dashboard configmaps", Label("OpenShift"), func() { | ||
flag.Parse() | ||
|
||
BeforeEach(func() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,10 @@ import ( | |
"k8s.io/apimachinery/pkg/types" | ||
"k8s.io/client-go/kubernetes/scheme" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
"kubevirt.io/client-go/kubecli" | ||
"kubevirt.io/kubevirt/tests/flags" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
) | ||
|
||
var runbookClient = http.DefaultClient | ||
|
@@ -36,7 +37,7 @@ const ( | |
criticalImpact | ||
) | ||
|
||
var _ = Describe("[crit:high][vendor:[email protected]][level:system]Monitoring", Serial, Ordered, func() { | ||
var _ = Describe("[crit:high][vendor:[email protected]][level:system]Monitoring", Serial, Ordered, Label("OpenShift"), func() { | ||
flag.Parse() | ||
|
||
var err error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,11 @@ import ( | |
|
||
networkaddonsv1 "github.com/kubevirt/cluster-network-addons-operator/pkg/apis/networkaddonsoperator/v1" | ||
hcov1beta1 "github.com/kubevirt/hyperconverged-cluster-operator/api/v1beta1" | ||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
"kubevirt.io/client-go/kubecli" | ||
sdkapi "kubevirt.io/controller-lifecycle-operator-sdk/api" | ||
"kubevirt.io/kubevirt/tests/flags" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
) | ||
|
||
const ( | ||
|
@@ -26,7 +27,7 @@ const ( | |
workloads = "workloads" | ||
) | ||
|
||
var _ = Describe("[rfe_id:4356][crit:medium][vendor:[email protected]][level:system]Node Placement", Ordered, Serial, func() { | ||
var _ = Describe("[rfe_id:4356][crit:medium][vendor:[email protected]][level:system]Node Placement", Ordered, Serial, Label("MULTI_NODE_ONLY"), func() { | ||
ctx := context.TODO() | ||
tests.FlagParse() | ||
hco := &hcov1beta1.HyperConverged{} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,12 @@ import ( | |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/client-go/kubernetes/scheme" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
"kubevirt.io/client-go/kubecli" | ||
|
||
tests "github.com/kubevirt/hyperconverged-cluster-operator/tests/func-tests" | ||
) | ||
|
||
var _ = Describe("[rfe_id:5882][crit:high][vendor:[email protected]][level:system]ConsoleQuickStart objects", func() { | ||
var _ = Describe("[rfe_id:5882][crit:high][vendor:[email protected]][level:system]ConsoleQuickStart objects", Label("OpenShift"), func() { | ||
flag.Parse() | ||
|
||
BeforeEach(func() { | ||
|