From e31b9ca74a459ee90d69e5b80526539fdead24d8 Mon Sep 17 00:00:00 2001 From: bom Date: Wed, 15 Dec 2021 11:13:22 +0100 Subject: [PATCH] moved some debug stuff --- src/test/resources/local-integration-test/README.md | 10 +++------- .../local-integration-test/setup-local-s3-on-k3d.sh | 7 +------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/test/resources/local-integration-test/README.md b/src/test/resources/local-integration-test/README.md index ba39369..c094aa1 100644 --- a/src/test/resources/local-integration-test/README.md +++ b/src/test/resources/local-integration-test/README.md @@ -77,12 +77,8 @@ Some steps may take a couple of minutes to be effective, but eventually nextclou See https://stackoverflow.com/questions/32933174/use-gitlab-ci-to-run-tests-locally +This needs to be done in the project root + `docker run -d --name gitlab-runner --restart always -v $PWD:$PWD -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest` -`docker exec -it -w $PWD gitlab-runner gitlab-runner exec docker nextcloud-integrationtest --docker-privileged --docker-volumes '/var/run/docker.sock:/var/run/docker.sock'` - -# TODO - -* add possibility to use local certificate in dda-backup backup function - * if ENV_VARIABLE set: use certificate -* get restic password from config \ No newline at end of file +`docker exec -it -w $PWD gitlab-runner gitlab-runner exec docker nextcloud-integrationtest --docker-privileged --docker-volumes '/var/run/docker.sock:/var/run/docker.sock'` \ No newline at end of file diff --git a/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh b/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh index be3eebc..36cdb1e 100755 --- a/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh +++ b/src/test/resources/local-integration-test/setup-local-s3-on-k3d.sh @@ -51,14 +51,9 @@ function main() kubectl exec -t $POD -- bash -c "echo \"$ENDPOINT k3stesthost cloudhost\" >> /etc/hosts" kubectl exec -t $POD -- /usr/local/bin/init.sh - # debug - kubectl exec -t $POD -- bash -c "ls -la /var/" - kubectl exec -t $POD -- bash -c "ls -la /var/backups" - kubectl exec -t $POD -- bash -c "ls -la /var/backups/config" - #debug end - date echo ================= BACKUP ================= + kubectl exec -t $POD -- ls -l /var/backups/config kubectl exec -t $POD -- /usr/local/bin/backup.sh date