mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix: replace silent exception swallowing and add per-test timeout in Python test suite test: misc compatibility-tests cleanups - Added sync comments to both main.tf files - Created compatibility-tests/.dockerignore - Cached CRC32 table in Node setup.ts - Removed >/dev/null 2>&1 from 3 Dockerfiles test: add missing .terraform.lock.hcl chore: remove .terraform.lock.hcl
25 lines
767 B
Bash
Executable File
25 lines
767 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Environment setup for Docker container
|
|
export AWS_REGION=us-east-1
|
|
export AWS_DEFAULT_REGION=us-east-1
|
|
export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-test}"
|
|
export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-test}"
|
|
export FLOCI_ENDPOINT="${FLOCI_ENDPOINT:-http://localhost:4566}"
|
|
export AWS_ENDPOINT_URL="$FLOCI_ENDPOINT"
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
|
|
# Ensure bats is available
|
|
if [ ! -d "$REPO_ROOT/lib/bats-core" ]; then
|
|
echo "Error: bats-core not found. Run 'just setup-bats' first."
|
|
exit 1
|
|
fi
|
|
|
|
# Run bats tests
|
|
exec "$REPO_ROOT/lib/run-bats-with-junit.sh" \
|
|
"$SCRIPT_DIR/test/" \
|
|
"${BATS_JUNIT_XML:-$SCRIPT_DIR/test-results/junit.xml}"
|