SashegDev
|
8939e24e69
|
test(server): add client-facing endpoint tests (20 tests), fix pack contract assertions
- Add test_client.py with comprehensive client-server contract tests:
- TestAuthFlowClient: full register → login → refresh → validate → /admin/me → logout lifecycle
- TestPacksClientContract: /packs response fields matching ServerPack.java
- TestPackManifestClientContract: /pack/{name} fields matching PackManifest.java
- TestPackDiffClientContract: /pack/{name}/diff matching DiffResponse/FileInfo.java
(all-new, no-changes, outdated-file, extra-local-file scenarios)
- TestPackFileDownload: file serving, 404, path traversal security
- TestPackPermissions: auth/pass requirements for /packs and /diff
- TestLauncherVersion: /launcher/version endpoint
- TestProxyEndpoints: /proxy/status, /proxy/fabric/versions/loader
- Add logged_in_user_with_pass fixture (role=1) for pack-related tests
- Add pack_fixture: creates temp pack with mod file, scans it, cleans up
- Fix manifest test: files don't have 'url' field (only in diff response)
- Fix /pack/{name} test: endpoint is public, no auth required
Total: 67 tests passing (47 existing + 20 new)
|
2026-05-04 22:28:12 +00:00 |
|
SashegDev
|
c0310ed573
|
test(server): add comprehensive test suite (47 tests), fix DB lock and schema bugs
- Add pytest test suite: test_auth.py, test_admin.py, test_pass.py,
test_proxy.py, test_rate_limit.py, test_client_contract.py
- Fix SQLite 'database is locked' errors: moved log_audit() calls outside
with get_db() blocks in register, login, logout, refresh, activate_pass
- Enable WAL mode and busy_timeout in get_db() for concurrent access
- Fix /admin/me: removed non-existent 'email' column from query
- Fix /admin/users list: disambiguated activated_at column in JOIN query
- Fix /auth/refresh: now returns refresh_token + expires_in + username/uuid/role
to match AuthManager.AuthSession expectations; revokes old refresh token
- Fix conftest.py: unique usernames per test to avoid conflicts
- All 47 tests passing
|
2026-05-04 22:14:06 +00:00 |
|
SashegDev
|
c96b502ad4
|
fix(server,security): add ban check to validate_token, replace rate_limit DB with TTLCache
|
2026-05-04 21:12:35 +00:00 |
|
SashegDev
|
bfcffdd88d
|
chore(server): remove unused models, delete http_logger.py, rename viev_logs.py → view_logs.py
|
2026-05-04 21:10:11 +00:00 |
|
SashegDev
|
331fc9a863
|
refactor(server): clean main.py — remove duplicate imports, dead code, unify logging, fix proxy lifecycle
|
2026-05-04 21:09:10 +00:00 |
|
SashegDev
|
e347c042d5
|
feat(server): add /auth/pass/activate endpoint for pass code activation
|
2026-05-04 21:06:56 +00:00 |
|
SashegDev
|
bb564e6e9b
|
feat(server): connect admin_router to FastAPI app
|
2026-05-04 21:06:02 +00:00 |
|
SashegDev
|
6f53002266
|
fix(server): add role aliases in roles.py to fix broken admin_router imports
|
2026-05-04 21:04:44 +00:00 |
|
Sashegdev
|
b60e414d37
|
last commit to uuuuh idl
|
2026-05-04 15:19:46 +00:00 |
|
Sashegdev
|
10ec8625b9
|
The fuck was hapanned тут
|
2026-04-22 12:54:57 +00:00 |
|
Sashegdev
|
f24cc078c5
|
Merge branch 'main' into alpha
|
2026-04-22 15:26:39 +03:00 |
|
Sashegdev
|
adde40d921
|
Коммит, для того что бы если что роллбекать
|
2026-04-22 12:23:51 +00:00 |
|
Sashegdev
|
6bf6c1634a
|
Фиксы проходок (нормально, в отличии от main ветки)
ОНО РАБОТАЕТ СУКАААА
|
2026-04-20 19:30:17 +00:00 |
|
Sashegdev
|
d7a6eb760e
|
fixes
|
2026-04-09 18:03:00 +00:00 |
|
Sashegdev
|
c6dd215e9b
|
рефакторинг + новая система модерации
|
2026-04-09 17:28:48 +00:00 |
|
Sashegdev
|
89c0057759
|
Server Fixes
|
2026-04-08 19:56:38 +00:00 |
|
Sashegdev
|
bf26baaf93
|
1.0.7 типоооо и фиксы
|
2026-04-08 19:45:15 +00:00 |
|
Sashegdev
|
9bee361ea4
|
Попытка добавления проходок, аккаунтов, а так же доработка прокси
|
2026-04-07 17:50:29 +00:00 |
|
Sashegdev
|
c03d7a788f
|
ДОБАВЛЕНИЕ ПРОКСИ РЕЖИМА ЙОООУ 1.0.5
|
2026-04-06 19:57:32 +00:00 |
|
Sashegdev
|
0b4af1353d
|
Both | БЛЯЯЯ ЗАГРУЗКА ПАКОВ С СЕРВЕРА СЮДААА
|
2026-04-06 00:32:36 +00:00 |
|
Sashegdev
|
4edbe7e910
|
Server BugFixes + убрал генерацию sevrer команды т.к это уже в клиенте лол
|
2026-04-05 22:25:43 +00:00 |
|
Sashegdev
|
7670edbff7
|
server update
|
2026-04-04 14:57:15 +00:00 |
|