mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 00:42:34 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -62,6 +62,7 @@ public function test_create_worker(): void
|
||||
$this->post(route('workers.store', [
|
||||
'server' => $this->server,
|
||||
]), [
|
||||
'name' => 'Test Worker',
|
||||
'command' => 'php artisan worker:work',
|
||||
'user' => 'vito',
|
||||
'auto_start' => 1,
|
||||
@ -72,6 +73,7 @@ public function test_create_worker(): void
|
||||
|
||||
$this->assertDatabaseHas('workers', [
|
||||
'server_id' => $this->server->id,
|
||||
'name' => 'Test Worker',
|
||||
'command' => 'php artisan worker:work',
|
||||
'user' => 'vito',
|
||||
'auto_start' => 1,
|
||||
@ -94,6 +96,7 @@ public function test_create_worker_as_isolated_user(): void
|
||||
'server' => $this->server,
|
||||
'site' => $this->site,
|
||||
]), [
|
||||
'name' => 'Test Worker',
|
||||
'command' => 'php artisan worker:work',
|
||||
'user' => 'example',
|
||||
'auto_start' => 1,
|
||||
@ -124,6 +127,7 @@ public function test_cannot_create_worker_as_invalid_user(): void
|
||||
'server' => $this->server,
|
||||
'site' => $this->site,
|
||||
]), [
|
||||
'name' => 'Test Worker',
|
||||
'command' => 'php artisan worker:work',
|
||||
'user' => 'example',
|
||||
'auto_start' => 1,
|
||||
@ -154,6 +158,7 @@ public function test_cannot_create_worker_on_another_sites_user(): void
|
||||
'server' => $this->server,
|
||||
'site' => $this->site,
|
||||
]), [
|
||||
'name' => 'Test Worker',
|
||||
'command' => 'php artisan worker:work',
|
||||
'user' => 'example',
|
||||
'auto_start' => 1,
|
||||
|
Reference in New Issue
Block a user