Skip to content

Commit

Permalink
fix(ci): add notifyPush test - WIP
Browse files Browse the repository at this point in the history
Signed-off-by: WrenIX <[email protected]>
  • Loading branch information
wrenix committed Jan 24, 2025
1 parent e4c263a commit 0e5d297
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 0e5d297

Please sign in to comment.