From 09d76304dd112ff036640ab593d7aacc36099c85 Mon Sep 17 00:00:00 2001 From: jessebot Date: Thu, 25 Jul 2024 07:55:14 +0200 Subject: [PATCH] change test job to run in same namespace as nextcloud and changed trusted domains to * instead of '*' Signed-off-by: jessebot --- .github/test_upload_job.yaml | 3 ++- .github/workflows/lint-test.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/test_upload_job.yaml b/.github/test_upload_job.yaml index 4348d565..080bae69 100644 --- a/.github/test_upload_job.yaml +++ b/.github/test_upload_job.yaml @@ -3,6 +3,7 @@ apiVersion: batch/v1 kind: Job metadata: name: create-nextcloud-file + namespace: nextcloud spec: template: metadata: @@ -20,6 +21,6 @@ spec: -w "%{http_code}" \ -u nextcloud:changeme \ -T test_upload.txt \ - "http://nextcloud.nextcloud.svc.cluster.local:8080/nextcloud/remote.php/dav/files/nextcloud/test_upload.txt" && \ + "http://nextcloud:8080/nextcloud/remote.php/dav/files/nextcloud/test_upload.txt" && \ echo -e "\nTried to uploaded a file, test_upload.txt, to Nextcloud." restartPolicy: Never diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 7ee83e56..d2292ad0 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -86,7 +86,7 @@ jobs: - name: S3 Enabled as Primary Storage # we need to skip the clean up so we can test adding a file helm_args: | - --namespace nextcloud --skip-clean-up --helm-extra-set-args "--set=fullnameOverride=nextcloud --set=nextcloud.objectStore.s3.enabled=true --set=nextcloud.objectStore.s3.accessKey=nextcloud --set=nextcloud.objectStore.s3.secretKey=rootpass123 --set=nextcloud.objectStore.s3.host=minio.minio.svc.cluster.local --set=nextcloud.objectStore.s3.port=9000 --set=nextcloud.objectStore.s3.bucket=nextcloud --set=nextcloud.trustedDomains[0]='*'" + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--set=fullnameOverride=nextcloud --set=nextcloud.objectStore.s3.enabled=true --set=nextcloud.objectStore.s3.accessKey=nextcloud --set=nextcloud.objectStore.s3.secretKey=rootpass123 --set=nextcloud.objectStore.s3.host=minio.minio.svc.cluster.local --set=nextcloud.objectStore.s3.port=9000 --set=nextcloud.objectStore.s3.bucket=nextcloud --set=nextcloud.trustedDomains[0]=*" steps: - name: Checkout