mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-28 02:06:37 -04:00
feat(sentinel): track synchronization state and refresh status UI
Add sentinel waiting-state tracking, synchronization broadcasts, and restore status handling across server and application interfaces.
This commit is contained in:
@@ -21,3 +21,13 @@ test('sentinel startup allows legacy metrics migrations to finish before health
|
||||
|
||||
expect($action)->toContain('--health-start-period 120s');
|
||||
});
|
||||
|
||||
test('local sentinel joins the Coolify network and waits for an authenticated push before becoming live', function () {
|
||||
$action = file_get_contents(dirname(__DIR__, 2).'/app/Actions/Server/StartSentinel.php');
|
||||
|
||||
expect($action)
|
||||
->toContain('--network coolify')
|
||||
->toContain('sentinelHeartbeat(isReset: true)')
|
||||
->toContain("sentinel_waiting_since' => now()")
|
||||
->not->toContain('$server->sentinelHeartbeat();');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user