From cbb018a501ba41d8ba49ad8bb28db50d7bb51e8a Mon Sep 17 00:00:00 2001 From: ishabaral Date: Mon, 12 Oct 2026 15:57:18 +0545 Subject: [PATCH] test: run e2e part-1 test suites in k8s Signed-off-by: ishabaral --- .github/workflows/k8s.yml | 4 ++-- tests/config/k8s/Makefile | 2 ++ tests/config/k8s/templates/extra.tpl | 8 -------- tests/config/k8s/values.yaml | 16 ++++++++++++++++ 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/k8s.yml b/.github/workflows/k8s.yml index 998966f90a9..eefebe5a833 100644 --- a/.github/workflows/k8s.yml +++ b/.github/workflows/k8s.yml @@ -459,8 +459,8 @@ jobs: fail-fast: false matrix: include: - # - suite: part-1 - # args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 1" + - suite: part-1 + args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 1" - suite: part-2 args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 2" # - suite: part-3 diff --git a/tests/config/k8s/Makefile b/tests/config/k8s/Makefile index f2e8e4c428a..e37c649a3f2 100644 --- a/tests/config/k8s/Makefile +++ b/tests/config/k8s/Makefile @@ -27,6 +27,8 @@ prepare-charts: bash setup.sh $(CHART_REPO) kubectl create namespace $(DOMAIN) || true kubectl create configmap -n $(DOMAIN) ocis-fonts-ttf --from-file=../ci/NotoSans.ttf || true + kubectl create secret generic -n $(DOMAIN) ocis-admin-user \ + --from-literal=user-id=ddc2004c-0977-11eb-9d3f-a793888cd0f8 --from-literal=password=admin || true kubectl create configmap -n $(DOMAIN) ocis-translations \ --from-file=de_LC_MESSAGES_notifications.po=../translations/de/LC_MESSAGES/notifications.po \ --from-file=es_LC_MESSAGES_notifications.po=../translations/es/LC_MESSAGES/notifications.po || true diff --git a/tests/config/k8s/templates/extra.tpl b/tests/config/k8s/templates/extra.tpl index afb43be5493..327255483b8 100644 --- a/tests/config/k8s/templates/extra.tpl +++ b/tests/config/k8s/templates/extra.tpl @@ -42,18 +42,10 @@ {{- define "ocis.extraEnvs" -}} - name: OCIS_LOG_FILE value: /logs/ocis.log -{{- if eq .appName "idm" }} -- name: IDM_ADMIN_PASSWORD - value: admin -{{- end -}} {{- if eq .appName "proxy" }} - name: PROXY_ENABLE_BASIC_AUTH value: "true" {{- end -}} -{{- if eq .appName "audit" }} -- name: AUDIT_LOG_TO_CONSOLE - value: "false" -{{- end -}} {{- if eq .appName "thumbnails" }} - name: THUMBNAILS_TXT_FONTMAP_FILE value: /etc/ocis/fontsMap.json diff --git a/tests/config/k8s/values.yaml b/tests/config/k8s/values.yaml index da20ccad04d..b7740b55e9e 100644 --- a/tests/config/k8s/values.yaml +++ b/tests/config/k8s/values.yaml @@ -192,8 +192,23 @@ services: accessModes: - ReadWriteOnce web: + additionalInitContainers: + - name: init-web-themes-dir + image: busybox:stable + imagePullPolicy: IfNotPresent + securityContext: + runAsNonRoot: false + runAsUser: 0 + command: + - sh + - -c + - mkdir -p /var/lib/ocis/web/assets/themes && chown -R 1000:1000 /var/lib/ocis/web/assets/themes + volumeMounts: + - name: web-data + mountPath: /var/lib/ocis persistence: enabled: true + chownInitContainer: true accessModes: - ReadWriteOnce antivirus: @@ -210,4 +225,5 @@ services: accessModes: - ReadWriteOnce secretRefs: + adminUserSecretRef: ocis-admin-user notificationsSmtpSecretRef: notifications-smtp-secret