Integrate Coolify API client and module for managing Coolify services, enhancing automation and deployment processes.

This commit is contained in:
Jeppe Bundgaard
2026-05-19 13:17:07 +02:00
parent ab31cd6dbb
commit 00a8723347
69 changed files with 16632 additions and 215 deletions
@@ -28,6 +28,8 @@ it('registers the v2 operator-facing edge gateway routes', function (): void {
it('registers PHP edge agent routes for operations and legacy relay command polling', function (): void {
$route = file_get_contents(app_path('routes/edgeGatewaysRoute.php'));
$manager = file_get_contents(app_path('classes/edge_gateway_manager.php'));
$agent = file_get_contents(app_path('resources/edge-gateway-agent/agent.php'));
expect($route)->toContain("'/edge-agent/install-token/verify'");
expect($route)->toContain("'/edge-agent/install-token/status'");
@@ -57,6 +59,9 @@ it('registers PHP edge agent routes for operations and legacy relay command poll
expect($route)->toContain("'/edge-agent/internal/browser-streams/validate'");
expect($route)->toContain("'/edge-agent/internal/shell-sessions/opened'");
expect($route)->toContain('echo $exception->getMessage()');
expect($manager)->toContain("\$gatewayPayload['broker_url'] = \$this->buildBrokerPublicUrl();");
expect($agent)->toContain('applyBrokerUrlFromControlPlaneResponse');
expect($agent)->toContain("Updated broker URL from control plane heartbeat response.");
expect($route)->not->toContain("'/edge-agent/gateways/{id}/shell-actions/poll'");
expect($route)->not->toContain("'/edge-agent/gateways/{id}/shell-sessions/{sessionId}/events'");
});