SashegDev
|
14da6c1a45
|
test(client): add JUnit 5 tests (30 tests) — unit + integration
- Add JUnit 5 dependency to pom.xml with surefire plugin
- Add setBaseUrl() to ZHttpClient for test server override
- AuthManagerParsingTest (7 tests): error extraction from JSON responses
(simple detail, validation array, multiple errors, plain text, truncation)
- PackDownloaderParsingTest (13 tests): JSON contract for packs, manifests,
diffs, file info, ServerPack toString
- ServerIntegrationTest (10 tests): real Java client ↔ real FastAPI server
(register, login, duplicate, wrong password, /admin/me, validate token,
refresh, packs auth, pack manifest public, launcher version)
- Integration tests auto-start test server via venv python3 subprocess
on random port with isolated temp DB, graceful skip if unavailable
All 30 tests pass, 0 failures
|
2026-05-04 22:40:10 +00:00 |
|
SashegDev
|
a80c00f91c
|
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
|
ff921def7f
|
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
|
ba4eea8c4e
|
fix(server,security): add ban check to validate_token, replace rate_limit DB with TTLCache
|
2026-05-04 21:12:35 +00:00 |
|
SashegDev
|
7daaedd327
|
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
|
95e5338635
|
refactor(server): clean main.py — remove duplicate imports, dead code, unify logging, fix proxy lifecycle
|
2026-05-04 21:09:10 +00:00 |
|
SashegDev
|
d78c6c27a5
|
feat(server): add /auth/pass/activate endpoint for pass code activation
|
2026-05-04 21:06:56 +00:00 |
|
SashegDev
|
466f155e0e
|
feat(server): connect admin_router to FastAPI app
|
2026-05-04 21:06:02 +00:00 |
|
SashegDev
|
014ffc4fae
|
fix(server): add role aliases in roles.py to fix broken admin_router imports
|
2026-05-04 21:04:44 +00:00 |
|
SashegDev
|
ec8e4c05d2
|
fix(pom.xml): correct launch4j JAR path for exe build
|
2026-05-04 20:52:28 +00:00 |
|
SashegDev
|
ae7532eec0
|
fix(TUI): proper arrow key handling — parse ESC sequences instead of treating as Esc
|
2026-05-04 20:39:29 +00:00 |
|
SashegDev
|
7b2a571180
|
just workin on the todo
|
2026-05-04 20:26:27 +00:00 |
|
SashegDev
|
ce8237c0db
|
last commit to uuuuh idl
|
2026-05-04 15:19:46 +00:00 |
|
SashegDev
|
75d87084e3
|
The fuck was hapanned тут
|
2026-04-22 12:54:57 +00:00 |
|
SashegDev
|
18919f7a8e
|
Merge branch 'main' into alpha
|
2026-04-22 15:26:39 +03:00 |
|
SashegDev
|
1c2ae28511
|
Коммит, для того что бы если что роллбекать
|
2026-04-22 12:23:51 +00:00 |
|
SashegDev
|
9e003fe1a1
|
Фиксы проходок (нормально, в отличии от main ветки)
ОНО РАБОТАЕТ СУКАААА
|
2026-04-20 19:30:17 +00:00 |
|
SashegDev
|
6bd49217d0
|
Update issue templates
|
2026-04-20 19:59:07 +03:00 |
|
SashegDev
|
3afd832db9
|
Create LICENSE
|
2026-04-20 19:57:52 +03:00 |
|
SashegDev
|
81aebef6a5
|
test penis
|
2026-04-09 18:13:21 +00:00 |
|
SashegDev
|
efff2d4ef6
|
fixes
|
2026-04-09 18:03:00 +00:00 |
|
SashegDev
|
46cafa5250
|
рефакторинг + новая система модерации
|
2026-04-09 17:28:48 +00:00 |
|
SashegDev
|
7ea88e0a27
|
СУКА ЛАСТ ФИКСЫ ДЛЯ ПРОХОДОК (логин работает)
|
2026-04-08 20:22:47 +00:00 |
|
SashegDev
|
b29698a3a2
|
ДА БЛЯ Я ЗАБЕАЛСЯ ФИКСИТЬ ПОМОГИТЕ Я КОНЧЕННЫЫЫЙ
|
2026-04-08 20:16:51 +00:00 |
|
SashegDev
|
c66a8d372a
|
SuperMinor Fixes (надеюсь последние для аккаунтов)
|
2026-04-08 20:04:52 +00:00 |
|
SashegDev
|
8d24bb9a92
|
Minor fixes(важные блять)
|
2026-04-08 20:02:09 +00:00 |
|
SashegDev
|
e6dacdcb61
|
Server Fixes
|
2026-04-08 19:56:38 +00:00 |
|
SashegDev
|
e6e4d88aec
|
1.0.7 типоооо и фиксы
|
2026-04-08 19:45:15 +00:00 |
|
SashegDev
|
9657053e08
|
utf-8 рефактор чутка
|
2026-04-07 19:00:42 +00:00 |
|
SashegDev
|
27aafeaab3
|
небольшой рефактор
|
2026-04-07 18:54:16 +00:00 |
|
SashegDev
|
af3183c6ef
|
ВАЖНИ ФИКСЕС
|
2026-04-07 18:40:51 +00:00 |
|
SashegDev
|
5627c9cc6a
|
Изменил версию и немного фиксов
|
2026-04-07 18:28:26 +00:00 |
|
SashegDev
|
f0973e93df
|
Readme модификейшин
|
2026-04-07 18:08:11 +00:00 |
|
SashegDev
|
02608a9856
|
Merge remote-tracking branch 'refs/remotes/origin/main'
|
2026-04-07 18:01:49 +00:00 |
|
SashegDev
|
c5c119fcb6
|
Попытка добавления проходок, аккаунтов, а так же доработка прокси
|
2026-04-07 17:50:29 +00:00 |
|
SashegDev
|
bce719bdc1
|
Update README.md
|
2026-04-07 18:11:54 +03:00 |
|
SashegDev
|
2509a9b4e9
|
Орфографическая правка
|
2026-04-07 12:24:06 +03:00 |
|
SashegDev
|
7696cfb9fb
|
REAMDE.md update, мяу
|
2026-04-07 11:17:36 +03:00 |
|
SashegDev
|
27a0366fb8
|
ДОБАВЛЕНИЕ ПРОКСИ РЕЖИМА ЙОООУ 1.0.5
|
2026-04-06 19:57:32 +00:00 |
|
SashegDev
|
f3a6bb21a0
|
Багфиксы ClassPath
|
2026-04-06 18:17:07 +00:00 |
|
SashegDev
|
911f4120dd
|
Smol Fixes Yoooo
|
2026-04-06 17:00:39 +00:00 |
|
SashegDev
|
81c34b44e6
|
Both | БЛЯЯЯ ЗАГРУЗКА ПАКОВ С СЕРВЕРА СЮДААА
|
2026-04-06 00:32:36 +00:00 |
|
SashegDev
|
1c5beff21d
|
Server BugFixes + убрал генерацию sevrer команды т.к это уже в клиенте лол
|
2026-04-05 22:25:43 +00:00 |
|
SashegDev
|
ea7b77b549
|
Немного рефактора
|
2026-04-05 18:45:31 +00:00 |
|
SashegDev
|
7fb2cdc059
|
Попытка заставить работать Forge
|
2026-04-05 16:18:39 +00:00 |
|
SashegDev
|
a10bc16d86
|
ФАБРИК ПОДДЕРЖКАААААААА
|
2026-04-05 15:43:16 +00:00 |
|
SashegDev
|
385d33ae5b
|
Починил загрузку ассетов, добавлена оптимизация
запуск Vanilla версий работает
|
2026-04-05 14:56:01 +00:00 |
|
SashegDev
|
06a1b71ab8
|
uuuh почему бы и нет
|
2026-04-05 10:47:28 +00:00 |
|
SashegDev
|
f5cbd2e649
|
Изменение получения self-version
|
2026-04-05 10:46:32 +00:00 |
|
SashegDev
|
f1ab0a6cdf
|
КЛИЕНТ ЛАУНЧЕРА ЙОООО
|
2026-04-05 00:18:57 +00:00 |
|