fix: add cd to lab directory in test-03 for docker compose commands
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user