mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
add log viewer for queues
This commit is contained in:
@ -167,4 +167,27 @@ public function test_restart_queue(): void
|
||||
'status' => QueueStatus::RUNNING,
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_show_logs(): void
|
||||
{
|
||||
SSH::fake('logs');
|
||||
|
||||
$this->actingAs($this->user);
|
||||
|
||||
$queue = Queue::factory()->create([
|
||||
'server_id' => $this->server->id,
|
||||
'site_id' => $this->site->id,
|
||||
'status' => QueueStatus::RUNNING,
|
||||
]);
|
||||
|
||||
$this->get(
|
||||
route('servers.sites.queues.logs', [
|
||||
'server' => $this->server,
|
||||
'site' => $this->site,
|
||||
'queue' => $queue,
|
||||
])
|
||||
)
|
||||
->assertSessionDoesntHaveErrors()
|
||||
->assertSessionHas('content', 'logs');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user