-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_lab.sh
More file actions
35 lines (29 loc) · 891 Bytes
/
verify_lab.sh
File metadata and controls
35 lines (29 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
echo "=== Lab 16 Verification ==="
echo ""
# Check generator
if python3 -c "from generator import ConfigGenerator; print('OK')" 2>/dev/null; then
echo "[PASS] Generator module loads"
else
echo "[FAIL] Generator module has errors"
fi
# Check validator
if python3 -c "from validator import ConfigValidator; print('OK')" 2>/dev/null; then
echo "[PASS] Validator module loads"
else
echo "[FAIL] Validator module has errors"
fi
# Check generated files
if [ -f configs/nginx.conf ] && [ -f configs/app_config.yaml ]; then
echo "[PASS] Configuration files generated"
else
echo "[FAIL] Missing configuration files"
fi
# Check file content
if grep -q "upstream.*backend" configs/nginx.conf; then
echo "[PASS] Nginx config contains upstream block"
else
echo "[FAIL] Nginx config missing upstream block"
fi
echo ""
echo "=== Verification Complete ==="