Skip to content
Snippets Groups Projects
Commit 143eb30e authored by Arie Peterson's avatar Arie Peterson
Browse files

Test that no apps are unexpectedly disabled

parent b1639766
No related branches found
No related tags found
1 merge request!572Resolve "Check nextcloud app compatibility somehow"
Pipeline #44212 passed with stages
in 8 minutes and 9 seconds
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-disabled-apps-test"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation
spec:
restartPolicy: Never
serviceAccountName: {{ .Release.Name }}-setup-apps-job
containers:
- name: test-disabled-apps
image: docker.io/bitnami/kubectl:1.25
command: ["kubectl", "exec", "deploy/{{ .Release.Name }}-nextcloud", "-n", {{ .Release.Namespace }}, "-c", "nextcloud", "--", "su", "www-data", "-s", "/bin/bash", "-c"]
args:
- >
cd /var/www/html;
echo 'Allowed to be disabled: {{ .Values.tests.disabledApps.allowedDisabled | keys | join "," }}';
echo 'Other disabled apps (empty output is okay):';
php occ app:list | sed -e "0,/^Disabled:$/d" | grep -v -E -e '({{ .Values.tests.disabledApps.allowedDisabled | keys | join "|" }})'; test $? -eq 1;
......@@ -231,3 +231,13 @@ tests:
# message:
# author:
# sha:
# We verify in a helm test that no apps are disabled except ones from this list.
disabledApps:
allowedDisabled:
admin_audit:
bruteforcesettings:
encryption:
files_external:
suspicious_login:
twofactor_totp:
user_ldap:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment