diff --git a/labs/lab-01-iam/tests/03-non-root-test.sh b/labs/lab-01-iam/tests/03-non-root-test.sh index 2e7f8c3..6551ed6 100755 --- a/labs/lab-01-iam/tests/03-non-root-test.sh +++ b/labs/lab-01-iam/tests/03-non-root-test.sh @@ -101,7 +101,8 @@ test_container_user_configured() { test_no_container_runs_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 echo -e "${YELLOW}SKIP${NC}: docker-compose.yml not created yet"