409e92d6ae
Build and Push Docker Images / Build Docker Image (push) Has been cancelled
Build and Push Docker Images / Build Railway Docker Image (push) Has been cancelled
Build and Publish n8n Docker Image / test-image (push) Has been cancelled
Dependency Compatibility Check / Fresh Install Dependency Check (push) Has been cancelled
Build and Publish n8n Docker Image / build-and-push (push) Has been cancelled
Build and Publish n8n Docker Image / create-release (push) Has been cancelled
Automated Release / Detect Version Change (push) Has been cancelled
Automated Release / Generate Release Notes (push) Has been cancelled
Automated Release / Create GitHub Release (push) Has been cancelled
Automated Release / Package MCPB Bundle (push) Has been cancelled
Automated Release / Build and Verify (push) Has been cancelled
Automated Release / Publish to NPM (push) Has been cancelled
Automated Release / Build and Push Docker Images (push) Has been cancelled
Automated Release / Update Documentation (push) Has been cancelled
Automated Release / Notify Release Completion (push) Has been cancelled
Secret Scan / secretlint (push) Has been cancelled
Test Suite / test (push) Has been cancelled
Test Suite / cjs-runtime (push) Has been cancelled
Test Suite / publish-results (push) Has been cancelled
45 lines
1.2 KiB
Bash
Executable File
45 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to run Docker config tests
|
|
# Usage: ./scripts/test-docker-config.sh [unit|integration|all]
|
|
|
|
set -e
|
|
|
|
MODE=${1:-all}
|
|
|
|
echo "Running Docker config tests in mode: $MODE"
|
|
|
|
case $MODE in
|
|
unit)
|
|
echo "Running unit tests..."
|
|
npm test -- tests/unit/docker/
|
|
;;
|
|
integration)
|
|
echo "Running integration tests (requires Docker)..."
|
|
RUN_DOCKER_TESTS=true npm run test:integration -- tests/integration/docker/
|
|
;;
|
|
all)
|
|
echo "Running all Docker config tests..."
|
|
npm test -- tests/unit/docker/
|
|
if command -v docker &> /dev/null; then
|
|
echo "Docker found, running integration tests..."
|
|
RUN_DOCKER_TESTS=true npm run test:integration -- tests/integration/docker/
|
|
else
|
|
echo "Docker not found, skipping integration tests"
|
|
fi
|
|
;;
|
|
coverage)
|
|
echo "Running Docker config tests with coverage..."
|
|
npm run test:coverage -- tests/unit/docker/
|
|
;;
|
|
security)
|
|
echo "Running security-focused tests..."
|
|
npm test -- tests/unit/docker/config-security.test.ts tests/unit/docker/parse-config.test.ts
|
|
;;
|
|
*)
|
|
echo "Usage: $0 [unit|integration|all|coverage|security]"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
echo "Docker config tests completed!" |