CI/CD:
- Jenkinsfile for zioinfo-web/guardia-itsm/guardia-manager/guardia-docs
- Jenkins jobs created (4 repos, pipeline-type)
- Global env vars: ITSM_BASE_URL, GITEA_URL, SERVER_HOST
- ITSM messenger notification in post{} block
Test Harness:
- .claude/agents/unit-tester.md
- .claude/agents/integration-tester.md
- .claude/skills/test-orchestrator/SKILL.md
Test Results:
- Unit: 26 PASS / 0 FAIL (models, rpa_engine, endpoints)
- Integration: 14 PASS / 0 FAIL / 1 SKIP (auth/sr/rpa/scraping/homepage)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
51 lines
1.6 KiB
Markdown
51 lines
1.6 KiB
Markdown
---
|
|
name: test-orchestrator
|
|
description: "GUARDiA 단위·통합 테스트 오케스트레이터. pytest(ITSM), httpx E2E(API), 홈페이지 응답 검증을 자동 실행하고 결과를 보고한다. 다음 상황에서 반드시 사용: (1) '테스트 실행', '테스트 해줘'; (2) '단위 테스트', '통합 테스트'; (3) CI/CD 파이프라인 테스트 단계; (4) 다시 실행, 업데이트, 보완."
|
|
---
|
|
|
|
# GUARDiA 테스트 오케스트레이터
|
|
|
|
**실행 모드:** 병렬 서브 에이전트 (단위 + 통합 동시 실행)
|
|
|
|
## 테스트 구조
|
|
|
|
```
|
|
tests/
|
|
├── unit/
|
|
│ ├── test_models.py ← Pydantic 스키마 검증
|
|
│ ├── test_rpa_engine.py ← RPA Validator 단위 테스트
|
|
│ └── test_nl_command.py ← NL 명령 파서 단위 테스트
|
|
└── integration/
|
|
├── test_auth_api.py ← 로그인/JWT 검증
|
|
├── test_itsm_api.py ← SR/CMDB/대시보드 API
|
|
├── test_rpa_api.py ← RPA 엔드포인트
|
|
└── test_homepage.py ← 홈페이지 응답
|
|
```
|
|
|
|
## Phase 1: 단위 테스트 (서버)
|
|
|
|
```bash
|
|
cd /opt/guardia/app
|
|
/opt/guardia/venv/bin/pytest tests/unit/ \
|
|
-q --tb=short \
|
|
--junitxml=/tmp/unit-results.xml
|
|
```
|
|
|
|
## Phase 2: 통합 테스트 (서버 API)
|
|
|
|
```bash
|
|
cd /opt/guardia/app
|
|
/opt/guardia/venv/bin/pytest tests/integration/ \
|
|
-q --tb=short \
|
|
--junitxml=/tmp/integration-results.xml
|
|
```
|
|
|
|
## 테스트 결과 보고
|
|
|
|
```
|
|
=== 테스트 결과 요약 ===
|
|
단위 테스트: PASS 12 / FAIL 0 / SKIP 2
|
|
통합 테스트: PASS 8 / FAIL 1 / SKIP 0
|
|
전체: PASS 20 / FAIL 1
|
|
```
|