wooden-umbrella-84098
04/10/2025, 1:55 PMcheck_file_contains() {
local file="$1"
local pattern="$2"
local description="$3"
if grep -q "$pattern" "$file"; then
echo -e "${GREEN}✓ PASS:${NC} $description"
else
echo -e "${RED}✗ FAIL:${NC} $description"
echo " Pattern '$pattern' not found in $file"
exit 1
fi
}
# Test 1: Check if update_image function exists in k8s.py
echo "Test 1: Checking if update_image function exists in k8s.py"
check_file_contains "$REPO_ROOT/k8s.py" "def update_image" "update_image function exists in k8s.py"
...