52 lines
1.7 KiB
Markdown
52 lines
1.7 KiB
Markdown
# Smoke Test Checklist — TT-006
|
|
|
|
## Запуск сервисов
|
|
|
|
```bash
|
|
# 1. Platform Backend
|
|
cd platform/backend
|
|
python -m uvicorn app.main:app --host 127.0.0.1 --port 8000
|
|
|
|
# 2. Request Module Backend
|
|
cd modules/request-module
|
|
python -m uvicorn request_app.main:app --host 127.0.0.1 --port 8001
|
|
|
|
# 3. Platform Frontend
|
|
cd platform/frontend
|
|
npm run dev # :5173
|
|
|
|
# 4. Request Module Frontend
|
|
cd modules/request-module/frontend
|
|
npm run dev # :5174
|
|
```
|
|
|
|
## Проверки
|
|
|
|
| # | Сценарий | Ожидание | Статус |
|
|
|---|----------|----------|--------|
|
|
| 1 | Platform Backend запускается | http://localhost:8000/api/v1/health → 200 | |
|
|
| 2 | Request Backend запускается | http://localhost:8001/api/v1/health → 200 | |
|
|
| 3 | Platform Frontend открывается | http://localhost:5173 → Login page | |
|
|
| 4 | Login admin@platform.com | Успешный вход | |
|
|
| 5 | GET /api/v1/auth/me | Возвращает user + permissions | |
|
|
| 6 | GET /api/v1/platform/modules | Возвращает request module | |
|
|
| 7 | Открыть Request Module | /module/request → iframe загружается | |
|
|
| 8 | Пользователь без request.read | /module/request → 403 | |
|
|
| 9 | Backend 403 | API без permission → 403 | |
|
|
| 10 | Request Module health | http://localhost:8001/api/v1/health → 200 | |
|
|
| 11 | Production build frontend | npm run build → success | |
|
|
|
|
## Автоматические тесты
|
|
|
|
```bash
|
|
# Platform Backend tests
|
|
cd platform/backend
|
|
python -m pytest tests/ -v
|
|
# Expected: 22 passed
|
|
|
|
# Request Module smoke tests
|
|
cd modules/request-module
|
|
python -m pytest tests/smoke/ -v
|
|
# Expected: 10 passed
|
|
```
|