From 663a4608757b62220a700a7995fa17ed99ed5cbb Mon Sep 17 00:00:00 2001 From: ansgarz Date: Wed, 15 Dec 2021 12:45:55 +0100 Subject: [PATCH] add wait for nc config.php --- .../local-integration-test/setup-local-s3-on-k3d.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 557543d..99c7904 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 @@ -35,6 +35,9 @@ function main() POD=$(kubectl get pod -l app=cloud-app -o name) kubectl wait $POD --for=condition=Ready --timeout=240s + # wait for nextcloud config file available + timeout 180 bash -c "kubectl exec -t $POD -- bash -c \"until [ -f /var/www/html/config/config.php ]; do sleep 10; done\"" + kubectl scale deployment backup-restore --replicas 1 date @@ -54,12 +57,6 @@ function main() kubectl exec -t $POD -- bash -c "echo \"$ENDPOINT k3stesthost cloudhost\" >> /etc/hosts" kubectl exec -t $POD -- /usr/local/bin/init.sh - echo ================= DEBUG ================= - # tmp - sleep 180 - ls -la /var/cloud - - date echo ================= BACKUP ================= kubectl exec -t $POD -- ls -l /var/backups/config kubectl exec -t $POD -- /usr/local/bin/backup.sh