|
85 | 85 |
|
86 | 86 | # test the helm chart with notify push enabled
|
87 | 87 | - name: Notify Push Enabled
|
88 |
| - helm_args: '--helm-extra-set-args "--values charts/nextcloud/test-values/notify_push.yaml"' |
| 88 | + helm_args: '| |
| 89 | + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/notify_push.yaml"' |
| 90 | + testNotifyPush: true |
89 | 91 |
|
90 | 92 | # test the helm chart with s3 as the primary storage
|
91 | 93 | - name: S3 Enabled as Primary Storage
|
|
96 | 98 |
|
97 | 99 | # test the helm chart with imaginary
|
98 | 100 | - name: Imaginary Enabled
|
99 |
| - helm_args: --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/imaginary.yaml" |
| 101 | + helm_args: | |
| 102 | + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--create-namespace --values charts/nextcloud/test-values/imaginary.yaml" |
100 | 103 | test: true
|
101 | 104 |
|
102 | 105 | steps:
|
@@ -165,6 +168,21 @@ 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 Nextcloud |
| 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 | + kubectl apply -f ./.github/tests/test_job_notifyPush.yaml --wait=true && \ |
| 178 | + sleep 2 && \ |
| 179 | + kubectl wait --for=condition=Complete --timeout=2m job/test-nextcloud-notify-push || EXIT=1 |
| 180 | + echo "Here's the logs from the job:" |
| 181 | + kubectl logs --ignore-errors --prefix --tail=-1 --all-containers=true -l batch.kubernetes.io/job-name=test-nextcloud-notify-push |
| 182 | + echo "Here's the logs from the nextcloud pod:" |
| 183 | + kubectl logs --ignore-errors --prefix -l app.kubernetes.io/name=nextcloud |
| 184 | + exit $EXIT |
| 185 | +
|
168 | 186 | summary:
|
169 | 187 | runs-on: ubuntu-latest-low
|
170 | 188 | needs: [changes, test]
|
|
0 commit comments