Skip to content

Commit 080cd53

Browse files
committed
fix: modify e2e tests according to new argocd-operaor version
Signed-off-by: Jayendra Parsai <[email protected]>
1 parent e39fcd2 commit 080cd53

3 files changed

Lines changed: 44 additions & 2 deletions

File tree

test/openshift/e2e/ginkgo/parallel/1-019_validate_volume_mounts_test.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
7373
{Name: "tls-certs", MountPath: "/app/config/tls"},
7474
{Name: "argocd-repo-server-tls", MountPath: "/app/config/server/tls"},
7575
{Name: "argocd-operator-redis-tls", MountPath: "/app/config/server/tls/redis"},
76+
{Name: "redis-initial-pass", MountPath: "/app/config/redis-auth/"},
7677
{Name: "plugins-home", MountPath: "/home/argocd"},
7778
{Name: "argocd-cmd-params-cm", MountPath: "/home/argocd/params"},
7879
{Name: "tmp", MountPath: "/tmp"},
@@ -111,6 +112,19 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
111112
},
112113
},
113114
},
115+
{
116+
Name: "redis-initial-pass",
117+
VolumeSource: corev1.VolumeSource{
118+
Secret: &corev1.SecretVolumeSource{
119+
SecretName: "argocd-redis-initial-password",
120+
DefaultMode: ptr.To(int32(420)),
121+
Items: []corev1.KeyToPath{
122+
{Key: "auth", Path: "auth"},
123+
{Key: "auth_username", Path: "auth_username"},
124+
},
125+
},
126+
},
127+
},
114128
{
115129
Name: "plugins-home", VolumeSource: corev1.VolumeSource{
116130
EmptyDir: &corev1.EmptyDirVolumeSource{},
@@ -144,6 +158,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
144158
{Name: "gpg-keyring", MountPath: "/app/config/gpg/keys"},
145159
{Name: "argocd-repo-server-tls", MountPath: "/app/config/reposerver/tls"},
146160
{Name: "argocd-operator-redis-tls", MountPath: "/app/config/reposerver/tls/redis"},
161+
{Name: "redis-initial-pass", MountPath: "/app/config/redis-auth/"},
147162
{Name: "plugins", MountPath: "/home/argocd/cmp-server/plugins"},
148163
{Name: "tmp", MountPath: "/tmp"},
149164
}))
@@ -193,6 +208,19 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
193208
},
194209
},
195210
},
211+
{
212+
Name: "redis-initial-pass",
213+
VolumeSource: corev1.VolumeSource{
214+
Secret: &corev1.SecretVolumeSource{
215+
SecretName: "argocd-redis-initial-password",
216+
DefaultMode: ptr.To(int32(420)),
217+
Items: []corev1.KeyToPath{
218+
{Key: "auth", Path: "auth"},
219+
{Key: "auth_username", Path: "auth_username"},
220+
},
221+
},
222+
},
223+
},
196224
{
197225
Name: "var-files", VolumeSource: corev1.VolumeSource{
198226
EmptyDir: &corev1.EmptyDirVolumeSource{},
@@ -218,6 +246,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
218246
Expect(applControllerSS.Spec.Template.Spec.Containers[0].VolumeMounts).To(Equal([]corev1.VolumeMount{
219247
{Name: "argocd-repo-server-tls", MountPath: "/app/config/controller/tls"},
220248
{Name: "argocd-operator-redis-tls", MountPath: "/app/config/controller/tls/redis"},
249+
{Name: "redis-initial-pass", MountPath: "/app/config/redis-auth/"},
221250
{Name: "argocd-home", MountPath: "/home/argocd"},
222251
{Name: "argocd-cmd-params-cm", MountPath: "/home/argocd/params"},
223252
{Name: "argocd-application-controller-tmp", MountPath: "/tmp"},
@@ -242,6 +271,19 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
242271
},
243272
},
244273
},
274+
{
275+
Name: "redis-initial-pass",
276+
VolumeSource: corev1.VolumeSource{
277+
Secret: &corev1.SecretVolumeSource{
278+
SecretName: "argocd-redis-initial-password",
279+
DefaultMode: ptr.To(int32(420)),
280+
Items: []corev1.KeyToPath{
281+
{Key: "auth", Path: "auth"},
282+
{Key: "auth_username", Path: "auth_username"},
283+
},
284+
},
285+
},
286+
},
245287
{
246288
Name: "argocd-home", VolumeSource: corev1.VolumeSource{
247289
EmptyDir: &corev1.EmptyDirVolumeSource{},

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.8.1"
8989
expected_helmVersion := "v3.19.4"
90-
expected_argocdVersion := "v3.3.2"
90+
expected_argocdVersion := "v3.3.6"
9191

9292
var expected_dexVersion string
9393
var expected_redisVersion string

test/openshift/e2e/ginkgo/parallel/1-066_validate_redis_secure_comm_no_autotls_no_ha_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
142142

143143
By("expecting redis-server to have desired container process command/arguments")
144144

145-
expectedString := "--save \"\" --appendonly no --requirepass " + "$(REDIS_PASSWORD)" + " --tls-port 6379 --port 0 --tls-cert-file /app/config/redis/tls/tls.crt --tls-key-file /app/config/redis/tls/tls.key --tls-auth-clients no"
145+
expectedString := "--save \"\" --appendonly no --aclfile /app/config/redis-auth/users.acl --tls-port 6379 --port 0 --tls-cert-file /app/config/redis/tls/tls.crt --tls-key-file /app/config/redis/tls/tls.key --tls-auth-clients no"
146146

147147
if !fixture.IsUpstreamOperatorTests() {
148148
// Downstream operator adds these arguments

0 commit comments

Comments
 (0)