Repository navigation
fix(deps): migrate mock server for Console 0.3 - #1990
Conversation
|
🟢 Tier S · Ready to merge
Migrates the HTTP mock server to PHP 8.5 and the framework’s built-in Swoole adapter, updating request handling and validation for Console 0.3 while preserving the SDK fixture responses. The HTTP dependency lock is regenerated with the compatible framework and validator versions; the MQTT broker continues to load its independently locked dependencies. The migration also removes unused database-backed helpers and retains the upload fixture’s fixed file ID. Latest changes: The follow-up lowercases the cookie fixture name in both the response and request checks, and clarifies in the Compose comments that MQTT uses its own locked vendor dependencies.
Note @renovate-appwrite[bot] does not have write access to this repository, so Hansi does not approve automatically. A maintainer can review and approve. 📂 Walkthrough · 13
Reviewed the commits since |
Console 0.3 requires PHP 8.5 and validators 1.x. The old mock-server framework, Swoole adapter and database dependencies could not resolve that combination, leaving the Renovate version bump with a stale, incompatible lockfile.
This migrates the mock server to PHP 8.5 and the HTTP framework’s built-in Swoole adapter, regenerates the lockfile with Console 0.3.0, and adapts headers, request injection and model validation while preserving the SDK fixture responses. HTTP reuses the existing WebSocket listener with the framework’s per-request coroutine context. Unused database response helpers are removed; the upload fixture keeps its fixed file ID without the database package. MQTT retains its separate locked dependency set.
The framework is deliberately pinned to
2.0.0-rc33, which supports validators 1.x.rc34requires validators 2.x and conflicts with Console 0.3. The router in rc33 drops literal0segments during registration, so the nullable-path fixture uses validated route parameters and retains its original concrete-path success markers.Validation: