|
83 | 83 | - name: Horizontal Pod Autoscaling Enabled |
84 | 84 | helm_args: '--helm-extra-set-args "--values charts/nextcloud/test-values/hpa.yaml"' |
85 | 85 |
|
86 | | - # test the helm chart with notify push enabled |
87 | | - - name: Notify Push Enabled |
88 | | - helm_args: '--helm-extra-set-args "--values charts/nextcloud/test-values/notify_push.yaml"' |
89 | | - |
90 | 86 | # test the helm chart with s3 as the primary storage |
91 | 87 | - name: S3 Enabled as Primary Storage |
92 | 88 | # we need to skip the clean up so we can test adding a file |
|
96 | 92 |
|
97 | 93 | # test the helm chart with imaginary |
98 | 94 | - name: Imaginary Enabled |
99 | | - helm_args: --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/imaginary.yaml" |
| 95 | + helm_args: | |
| 96 | + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/imaginary.yaml" |
100 | 97 | test: true |
101 | 98 |
|
| 99 | + # test the helm chart with notify push enabled |
| 100 | + - name: Notify Push Enabled |
| 101 | + helm_args: | |
| 102 | + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/notify_push.yaml" |
| 103 | + testNotifyPush: true |
| 104 | + |
102 | 105 | steps: |
103 | 106 | - name: Checkout |
104 | 107 | uses: actions/checkout@v6 |
@@ -165,6 +168,20 @@ jobs: |
165 | 168 | kubectl logs --ignore-errors --prefix -l app.kubernetes.io/name=nextcloud |
166 | 169 | exit $EXIT |
167 | 170 |
|
| 171 | + - name: Run test for Notify Push |
| 172 | + if: matrix.test_cases.testNotifyPush |
| 173 | + # applies a kubernetes job that uploads a file and then checks log of finished pod |
| 174 | + run: | |
| 175 | + EXIT=0 |
| 176 | + kubectl config set-context --current --namespace=nextcloud |
| 177 | + POD=$(kubectl get pods -o name --selector "app.kubernetes.io/component=app") |
| 178 | + (kubectl wait --for=condition=Ready --timeout=2m "${POD}" && sleep 60) || EXIT=1 |
| 179 | + kubectl exec --stdin "${POD}" -c nextcloud -- sh -c ' |
| 180 | + chsh -s /bin/sh www-data |
| 181 | + su -l www-data -c "/var/www/html/occ notify_push:self-test" |
| 182 | + ' || EXIT=1 |
| 183 | + exit $EXIT |
| 184 | +
|
168 | 185 | summary: |
169 | 186 | runs-on: ubuntu-latest-low |
170 | 187 | needs: [changes, test] |
|
0 commit comments