diff --git a/.github/workflows/k8s.yml b/.github/workflows/k8s.yml index fcad20f2f33..79ec3f6ce35 100644 --- a/.github/workflows/k8s.yml +++ b/.github/workflows/k8s.yml @@ -34,7 +34,7 @@ jobs: - suite: apiContract - suite: apiLocks - suite: apiSettings - # - suite: apiNotification + - suite: apiNotification - suite: apiCors - suite: apiGraphUser - suite: apiGraph diff --git a/tests/config/k8s/Makefile b/tests/config/k8s/Makefile index 8fb94d10078..aa4dc5fd57e 100644 --- a/tests/config/k8s/Makefile +++ b/tests/config/k8s/Makefile @@ -26,6 +26,9 @@ 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 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 .PHONY: deploy-ocis deploy-ocis: diff --git a/tests/config/k8s/templates/extra.tpl b/tests/config/k8s/templates/extra.tpl index 2f26521784b..6a093aeb51c 100644 --- a/tests/config/k8s/templates/extra.tpl +++ b/tests/config/k8s/templates/extra.tpl @@ -8,6 +8,10 @@ mountPath: /etc/ocis/fontsMap.json subPath: fontsMap.json {{- end -}} +{{- if eq .appName "notifications" }} +- name: ocis-translations + mountPath: /etc/ocis/translations +{{- end -}} {{- end -}} {{- define "ocis.extraVolumes" -}} @@ -23,6 +27,16 @@ configMap: name: ocis-fonts-map {{- end -}} +{{- if eq .appName "notifications" }} +- name: ocis-translations + configMap: + name: ocis-translations + items: + - key: de_LC_MESSAGES_notifications.po + path: de/LC_MESSAGES/notifications.po + - key: es_LC_MESSAGES_notifications.po + path: es/LC_MESSAGES/notifications.po +{{- end -}} {{- end -}} {{- define "ocis.extraEnvs" -}} @@ -50,6 +64,10 @@ - name: ANTIVIRUS_CLAMAV_SOCKET value: "tcp://clamav:3310" {{- end -}} +{{- if eq .appName "notifications" }} +- name: OCIS_TRANSLATION_PATH + value: /etc/ocis/translations +{{- end -}} {{- if .Values.features.vault.enabled }} {{- if eq .appName "proxy" }} - name: OCIS_ENABLE_VAULT_MODE