mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
Add database and database users sync (#537)
* Add database and database users sync * get mysl users * add mariadb and postgres * fix phpstan
This commit is contained in:
@ -76,6 +76,7 @@ public function test_see_databases_list(): void
|
||||
{
|
||||
$this->actingAs($this->user);
|
||||
|
||||
/** @var Database $database */
|
||||
$database = Database::factory()->create([
|
||||
'server_id' => $this->server,
|
||||
]);
|
||||
@ -91,6 +92,7 @@ public function test_delete_database(): void
|
||||
|
||||
SSH::fake();
|
||||
|
||||
/** @var Database $database */
|
||||
$database = Database::factory()->create([
|
||||
'server_id' => $this->server,
|
||||
]);
|
||||
@ -105,4 +107,17 @@ public function test_delete_database(): void
|
||||
'id' => $database->id,
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_sync_databases(): void
|
||||
{
|
||||
$this->actingAs($this->user);
|
||||
|
||||
SSH::fake();
|
||||
|
||||
Livewire::test(Index::class, [
|
||||
'server' => $this->server,
|
||||
])
|
||||
->callAction('sync')
|
||||
->assertSuccessful();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user