fix: code review #2 — _cfg.DELAY + VERSION в config/loader + мёртвые импорты

This commit is contained in:
2026-07-31 22:32:00 +04:00
parent 9647afcfa2
commit 94d35f3914
8 changed files with 48 additions and 27 deletions
+19 -4
View File
@@ -1,4 +1,4 @@
# polygon v0.2.0
# polygon v0.2.2
Эмулятор REST API облачной платформы Nubes для интеграционных тестов app-autotest.
@@ -14,12 +14,27 @@ polygon/
│ ├── test_converter.py # 10 юнит-тестов from_stands.py
│ └── test_state_machine.py # 9 юнит-тестов state_machine.py
└── site/
├── app.py # Flask (17 эндпоинтов)
├── app.py # Flask: только blueprint'ы + app.run() (57 строк)
├── routes/ # 6 blueprint-файлов по доменам
│ ├── root.py # /health, /
│ ├── services_routes.py# /api/v1/svc/services
│ ├── instances_routes.py# /api/v1/svc/instances
│ ├── operations_routes.py# /api/v1/svc/instanceOperations/*
│ ├── run.py # /api/v1/svc/instanceOperations/<uid>/run
│ └── mock_routes.py # /api/v1/svc/_mock/*
├── mock_state.py # MockState: instances, operations, op_params
├── state_machine.py # apply_effect() — мутация состояния
├── config_loader.py # загрузка services/*.yaml
├── config/
│ └── loader.py # загрузка YAML + SERVICES/OPS_INDEX/DELAY/VERSION
├── utils/
│ ├── now.py # now() — UTC ISO с 'Z'
│ └── pluralize.py # pluralize() — плюрализация
├── from_stands.py # конвертер STANDS YAML → polygon config
── services/ # 37 YAML-конфигов (сгенерированы)
── static/
│ └── style.css # тёмная тема
├── templates/
│ └── index.html # Jinja2-шаблон
└── services/ # YAML-конфиги (сгенерированы from_stands.py)
```
**Ровно 1 gunicorn-воркер.** Состояние в памяти, не shared.