Skip to content

Commit e986b82

Browse files
committed
chore: update E2E tests for latest version
Signed-off-by: Jonathan West <[email protected]>
1 parent bfd85db commit e986b82

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

test/openshift/e2e/ginkgo/parallel/1-031_validate_toolchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
8787
// These variables need to be maintained according to the component matrix: https://spaces.redhat.com/display/GITOPS/GitOps+Component+Matrix
8888
expected_kustomizeVersion := "v5.7.0"
8989
expected_helmVersion := "v3.18.4"
90-
expected_argocdVersion := "v3.1.1"
90+
expected_argocdVersion := "v3.1.9"
9191

9292
var expected_dexVersion string
9393
var expected_redisVersion string

test/openshift/e2e/ginkgo/sequential/1-105_validate_label_selector_test.go

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
2222
Context("1-105_validate_label_selector", func() {
2323

2424
var (
25-
ctx context.Context
26-
k8sClient client.Client
25+
ctx context.Context
26+
k8sClient client.Client
27+
ns *corev1.Namespace
28+
cleanupFunc func()
2729
)
2830

2931
BeforeEach(func() {
@@ -33,6 +35,14 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
3335
ctx = context.Background()
3436
})
3537

38+
AfterEach(func() {
39+
defer cleanupFunc()
40+
41+
fixture.OutputDebugOnFail(ns)
42+
43+
fixture.RestoreSubcriptionToDefault()
44+
})
45+
3646
It("ensures that ARGOCD_LABEL_SELECTOR controls which ArgoCD CRs are reconciled via operator", func() {
3747

3848
if fixture.EnvLocalRun() {
@@ -43,13 +53,9 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
4353
By("adding ARGOCD_LABEL_SELECTOR foo=bar to Operator")
4454
fixture.SetEnvInOperatorSubscriptionOrDeployment("ARGOCD_LABEL_SELECTOR", "foo=bar")
4555

46-
defer func() { // Restore subscription to default after test
47-
fixture.RestoreSubcriptionToDefault()
48-
}()
49-
50-
By("creating new namespace-scoped ArgoCD instance in test-argocd")
56+
By("creating new namespace-scoped ArgoCD instance")
5157

52-
ns := fixture.CreateNamespace("test-argocd")
58+
ns, cleanupFunc = fixture.CreateRandomE2ETestNamespaceWithCleanupFunc()
5359

5460
argoCD := &argov1beta1api.ArgoCD{
5561
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)