Skip to content

Commit 031384f

Browse files
committed
fix(tests): remove duplicate script stub appended to lab test files
1 parent efc1e0d commit 031384f

2 files changed

Lines changed: 2 additions & 142 deletions

File tree

tests/labs/test-lab-14-05.sh

Lines changed: 1 addition & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -176,74 +176,4 @@ echo -e "${CYAN}============================================================${NC
176176

177177
if [ "${FAIL}" -gt 0 ]; then
178178
exit 1
179-
fi
180-
# test-lab-14-05.sh — Lab 14-05: Advanced Integration
181-
# Module 14: OpenKM document management system
182-
# openkm integrated with full IT-Stack ecosystem
183-
set -euo pipefail
184-
185-
LAB_ID="14-05"
186-
LAB_NAME="Advanced Integration"
187-
MODULE="openkm"
188-
COMPOSE_FILE="docker/docker-compose.integration.yml"
189-
PASS=0
190-
FAIL=0
191-
192-
# ── Colors ────────────────────────────────────────────────────────────────────
193-
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'
194-
CYAN='\033[0;36m'; NC='\033[0m'
195-
196-
pass() { echo -e "${GREEN}[PASS]${NC} $1"; ((PASS++)); }
197-
fail() { echo -e "${RED}[FAIL]${NC} $1"; ((FAIL++)); }
198-
info() { echo -e "${CYAN}[INFO]${NC} $1"; }
199-
warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
200-
201-
echo -e "${CYAN}======================================${NC}"
202-
echo -e "${CYAN} Lab ${LAB_ID}: ${LAB_NAME}${NC}"
203-
echo -e "${CYAN} Module: ${MODULE}${NC}"
204-
echo -e "${CYAN}======================================${NC}"
205-
echo ""
206-
207-
# ── PHASE 1: Setup ────────────────────────────────────────────────────────────
208-
info "Phase 1: Setup"
209-
docker compose -f "${COMPOSE_FILE}" up -d
210-
info "Waiting 30s for ${MODULE} to initialize..."
211-
sleep 30
212-
213-
# ── PHASE 2: Health Checks ────────────────────────────────────────────────────
214-
info "Phase 2: Health Checks"
215-
216-
if docker compose -f "${COMPOSE_FILE}" ps | grep -q "running\|Up"; then
217-
pass "Container is running"
218-
else
219-
fail "Container is not running"
220-
fi
221-
222-
# ── PHASE 3: Functional Tests ─────────────────────────────────────────────────
223-
info "Phase 3: Functional Tests (Lab 05 — Advanced Integration)"
224-
225-
# TODO: Add module-specific functional tests here
226-
# Example:
227-
# if curl -sf http://localhost:8080/health > /dev/null 2>&1; then
228-
# pass "Health endpoint responds"
229-
# else
230-
# fail "Health endpoint not reachable"
231-
# fi
232-
233-
warn "Functional tests for Lab 14-05 pending implementation"
234-
235-
# ── PHASE 4: Cleanup ──────────────────────────────────────────────────────────
236-
info "Phase 4: Cleanup"
237-
docker compose -f "${COMPOSE_FILE}" down -v --remove-orphans
238-
info "Cleanup complete"
239-
240-
# ── Results ───────────────────────────────────────────────────────────────────
241-
echo ""
242-
echo -e "${CYAN}======================================${NC}"
243-
echo -e " Lab ${LAB_ID} Complete"
244-
echo -e " ${GREEN}PASS: ${PASS}${NC} | ${RED}FAIL: ${FAIL}${NC}"
245-
echo -e "${CYAN}======================================${NC}"
246-
247-
if [ "${FAIL}" -gt 0 ]; then
248-
exit 1
249-
fi
179+
fi

tests/labs/test-lab-14-06.sh

Lines changed: 1 addition & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -190,74 +190,4 @@ echo -e "${CYAN}============================================================${NC
190190

191191
if [ "${FAIL}" -gt 0 ]; then
192192
exit 1
193-
fi
194-
# test-lab-14-06.sh — Lab 14-06: Production Deployment
195-
# Module 14: OpenKM document management system
196-
# openkm in production-grade HA configuration with monitoring
197-
set -euo pipefail
198-
199-
LAB_ID="14-06"
200-
LAB_NAME="Production Deployment"
201-
MODULE="openkm"
202-
COMPOSE_FILE="docker/docker-compose.production.yml"
203-
PASS=0
204-
FAIL=0
205-
206-
# ── Colors ────────────────────────────────────────────────────────────────────
207-
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'
208-
CYAN='\033[0;36m'; NC='\033[0m'
209-
210-
pass() { echo -e "${GREEN}[PASS]${NC} $1"; ((PASS++)); }
211-
fail() { echo -e "${RED}[FAIL]${NC} $1"; ((FAIL++)); }
212-
info() { echo -e "${CYAN}[INFO]${NC} $1"; }
213-
warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
214-
215-
echo -e "${CYAN}======================================${NC}"
216-
echo -e "${CYAN} Lab ${LAB_ID}: ${LAB_NAME}${NC}"
217-
echo -e "${CYAN} Module: ${MODULE}${NC}"
218-
echo -e "${CYAN}======================================${NC}"
219-
echo ""
220-
221-
# ── PHASE 1: Setup ────────────────────────────────────────────────────────────
222-
info "Phase 1: Setup"
223-
docker compose -f "${COMPOSE_FILE}" up -d
224-
info "Waiting 30s for ${MODULE} to initialize..."
225-
sleep 30
226-
227-
# ── PHASE 2: Health Checks ────────────────────────────────────────────────────
228-
info "Phase 2: Health Checks"
229-
230-
if docker compose -f "${COMPOSE_FILE}" ps | grep -q "running\|Up"; then
231-
pass "Container is running"
232-
else
233-
fail "Container is not running"
234-
fi
235-
236-
# ── PHASE 3: Functional Tests ─────────────────────────────────────────────────
237-
info "Phase 3: Functional Tests (Lab 06 — Production Deployment)"
238-
239-
# TODO: Add module-specific functional tests here
240-
# Example:
241-
# if curl -sf http://localhost:8080/health > /dev/null 2>&1; then
242-
# pass "Health endpoint responds"
243-
# else
244-
# fail "Health endpoint not reachable"
245-
# fi
246-
247-
warn "Functional tests for Lab 14-06 pending implementation"
248-
249-
# ── PHASE 4: Cleanup ──────────────────────────────────────────────────────────
250-
info "Phase 4: Cleanup"
251-
docker compose -f "${COMPOSE_FILE}" down -v --remove-orphans
252-
info "Cleanup complete"
253-
254-
# ── Results ───────────────────────────────────────────────────────────────────
255-
echo ""
256-
echo -e "${CYAN}======================================${NC}"
257-
echo -e " Lab ${LAB_ID} Complete"
258-
echo -e " ${GREEN}PASS: ${PASS}${NC} | ${RED}FAIL: ${FAIL}${NC}"
259-
echo -e "${CYAN}======================================${NC}"
260-
261-
if [ "${FAIL}" -gt 0 ]; then
262-
exit 1
263-
fi
193+
fi

0 commit comments

Comments
 (0)