mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 04:15:55 +00:00
fix(v5): rotate agent tokens every fifteen minutes
This commit is contained in:
1 parent
51ed86fe63
commit
fbc6fd5ce5
2 files changed
+13
-1
No files matched your search
@@ -48,3 +48,15 @@ it('schedules every production job with onOneServer', function () {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('runs v5 agent token rotation often enough for the default ttl and refresh threshold', function () {
|
||||
$schedule = app(Schedule::class);
|
||||
|
||||
$event = collect($schedule->events())->first(
|
||||
fn ($e) => str_contains((string) $e->description, 'V5RotateAgentTokensJob')
|
||||
);
|
||||
|
||||
expect($event)->not->toBeNull();
|
||||
expect($event->expression)->toBe('*/15 * * * *');
|
||||
expect($event->onOneServer)->toBeTrue();
|
||||
});
|
||||
Reference in new issue
Block a user