mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
#591 - tests
This commit is contained in:
@ -20,7 +20,9 @@ public function test_uninstall_vito_agent(): void
|
||||
{
|
||||
SSH::fake();
|
||||
|
||||
Service::factory()->create([
|
||||
$this->server->monitoring()->delete();
|
||||
|
||||
$service = Service::factory()->create([
|
||||
'server_id' => $this->server->id,
|
||||
'name' => 'vito-agent',
|
||||
'type' => 'monitoring',
|
||||
@ -31,11 +33,7 @@ public function test_uninstall_vito_agent(): void
|
||||
app(Uninstall::class)->uninstall($this->server->monitoring());
|
||||
|
||||
$this->assertDatabaseMissing('services', [
|
||||
'server_id' => $this->server->id,
|
||||
'name' => 'vito-agent',
|
||||
'type' => 'monitoring',
|
||||
'version' => 'latest',
|
||||
'status' => ServiceStatus::READY,
|
||||
'id' => $service->id,
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user