diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 59f471ac..2c054779 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -85,7 +85,9 @@ jobs: # test the helm chart with notify push enabled - name: Notify Push Enabled - helm_args: '--helm-extra-set-args "--values charts/nextcloud/test-values/notify_push.yaml"' + helm_args: | + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/notify_push.yaml" + testNotifyPush: true # test the helm chart with s3 as the primary storage - name: S3 Enabled as Primary Storage @@ -96,7 +98,8 @@ jobs: # test the helm chart with imaginary - name: Imaginary Enabled - helm_args: --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/imaginary.yaml" + helm_args: | + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/imaginary.yaml" test: true steps: @@ -165,6 +168,18 @@ jobs: kubectl logs --ignore-errors --prefix -l app.kubernetes.io/name=nextcloud exit $EXIT + - name: Run test for Nextcloud + if: matrix.test_cases.testNotifyPush + # applies a kubernetes job that uploads a file and then checks log of finished pod + run: | + EXIT=0 + POD=$(kubectl get -n nextcloud pods -o name --selector "app.kubernetes.io/component=app") + kubectl exec --stdin --tty -n nextcloud $POD -- sh -c ' + chsh -s /bin/sh www-data + su -l www-data -c "/var/www/html/occ notify_push:self-test" + ' + exit $EXIT + summary: runs-on: ubuntu-latest-low needs: [changes, test]