Skip to content

Commit 7abd680

Browse files
committed
tmp
Signed-off-by: Andrey Kolkov <[email protected]>
1 parent ae0ef18 commit 7abd680

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎hack/e2e-apps/bucket.bats‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@ EOF
2525
SECRET_KEY=$(jq -r '.spec.secretS3.accessSecretKey' bucket-test-credentials.json)
2626
BUCKET_NAME=$(jq -r '.spec.bucketName' bucket-test-credentials.json)
2727

28+
# Tmp for test via s3 endpoint from bucket credentials
29+
S3_ENDPOINT=$(jq -r '.spec.secretS3.endpoint' bucket-test-credentials.json)
30+
echo "# S3 endopint = $S3_ENDPOINT" >&3
31+
2832
# Start port-forwarding
2933
bash -c 'timeout 100s kubectl port-forward service/seaweedfs-s3 -n tenant-root 8333:8333 > /dev/null 2>&1 &'
3034

3135
# Wait for port-forward to be ready
3236
timeout 30 sh -ec 'until nc -z localhost 8333; do sleep 1; done'
3337

3438
# Set up MinIO alias with error handling
35-
mc alias set local https://localhost:8333 $ACCESS_KEY $SECRET_KEY --insecure
39+
mc alias set local $S3_ENDPOINT $ACCESS_KEY $SECRET_KEY --insecure
3640

3741
# Upload file to bucket
3842
mc cp bucket-test-credentials.json $BUCKET_NAME/bucket-test-credentials.json

0 commit comments

Comments
 (0)