drop mysql and redis and use sqlite for Vito itself to optimize the resources

This commit is contained in:
Saeed Vaziry
2024-02-25 17:16:11 +01:00
parent 44d8364a52
commit 470274279b
14 changed files with 53 additions and 190 deletions

View File

@ -28,7 +28,9 @@ public function test_see_server_keys()
'public_key' => 'public-key-content',
]);
$this->server->sshKeys()->attach($sshKey);
$this->server->sshKeys()->attach($sshKey, [
'status' => SshKeyStatus::ADDED,
]);
Livewire::test(ServerKeysList::class, ['server' => $this->server])
->assertSeeText('My first key');
@ -46,7 +48,9 @@ public function test_delete_ssh_key()
'public_key' => 'public-key-content',
]);
$this->server->sshKeys()->attach($sshKey);
$this->server->sshKeys()->attach($sshKey, [
'status' => SshKeyStatus::ADDED,
]);
Livewire::test(ServerKeysList::class, ['server' => $this->server])
->set('deleteId', $sshKey->id)