-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ginkgo contexts instead and let ginkgo handle them, instead of creating our on contexts. Signed-off-by: Nahshon Unna-Tsameret <[email protected]>
- Loading branch information
Showing
19 changed files
with
274 additions
and
294 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,10 @@ var _ = Describe("[rfe_id:5100][crit:medium][vendor:[email protected]][level:sys | |
|
||
var ( | ||
cli client.Client | ||
ctx context.Context | ||
) | ||
|
||
BeforeEach(func() { | ||
tests.BeforeEach() | ||
BeforeEach(func(ctx context.Context) { | ||
tests.BeforeEach(ctx) | ||
cfg, err := config.GetConfig() | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
|
@@ -36,11 +35,10 @@ var _ = Describe("[rfe_id:5100][crit:medium][vendor:[email protected]][level:sys | |
cli, err = client.New(cfg, client.Options{Scheme: s}) | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
ctx = context.Background() | ||
tests.FailIfNotOpenShift(ctx, cli, "ConsoleCliDownload") | ||
}) | ||
|
||
It("[test_id:6956]should create ConsoleCliDownload objects with expected spec", Label("test_id:6956"), func() { | ||
It("[test_id:6956]should create ConsoleCliDownload objects with expected spec", Label("test_id:6956"), func(ctx context.Context) { | ||
By("Checking existence of ConsoleCliDownload") | ||
|
||
ccd := &consolev1.ConsoleCLIDownload{ | ||
|
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,23 +15,19 @@ import ( | |
var _ = Describe("[rfe_id:5108][crit:medium][vendor:[email protected]][level:system]Dashboard configmaps", Label(tests.OpenshiftLabel), func() { | ||
flag.Parse() | ||
|
||
var ( | ||
cli *kubernetes.Clientset | ||
ctx context.Context | ||
) | ||
var cli *kubernetes.Clientset | ||
|
||
BeforeEach(func() { | ||
tests.BeforeEach() | ||
BeforeEach(func(ctx context.Context) { | ||
tests.BeforeEach(ctx) | ||
|
||
k8sCli := tests.GetControllerRuntimeClient() | ||
ctx = context.Background() | ||
|
||
tests.FailIfNotOpenShift(ctx, k8sCli, "Dashboard configmaps") | ||
|
||
cli = tests.GetK8sClientSet() | ||
}) | ||
|
||
It("[test_id:5919]should create configmaps for OCP Dashboard", Label("test_id:5919"), func() { | ||
It("[test_id:5919]should create configmaps for OCP Dashboard", Label("test_id:5919"), func(ctx context.Context) { | ||
By("Checking expected configmaps") | ||
items := tests.GetConfig().Dashboard.TestItems | ||
|
||
|
Oops, something went wrong.