fix: add cd to lab directory in test-03 for docker compose commands

This commit is contained in:
Luca Sacchi Ricciardi
2026-04-09 12:33:26 +02:00
parent b3f06fb9b5
commit a246d7cbfc
+2 -1
View File
@@ -101,7 +101,8 @@ test_container_user_configured() {
test_no_container_runs_as_root() { test_no_container_runs_as_root() {
# INF-01 requirement: NO container should run as root # INF-01 requirement: NO container should run as root
local compose_file="$PROJECT_ROOT/labs/lab-01-iam/docker-compose.yml" cd "$PROJECT_ROOT/labs/lab-01-iam"
local compose_file="docker-compose.yml"
if [ ! -f "$compose_file" ]; then if [ ! -f "$compose_file" ]; then
echo -e "${YELLOW}SKIP${NC}: docker-compose.yml not created yet" echo -e "${YELLOW}SKIP${NC}: docker-compose.yml not created yet"