refactoring (#116)

- refactoring architecture
- fix incomplete ssh logs
- code editor for scripts in the app
- remove Jobs and SSHCommands
This commit is contained in:
Saeed Vaziry
2024-03-14 20:03:43 +01:00
committed by GitHub
parent cee4a70c3c
commit 428140b931
472 changed files with 24110 additions and 8159 deletions

View File

@ -5,16 +5,12 @@
use App\Enums\ServerProvider;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Http;
use JsonException;
use Tests\TestCase;
class ServerProvidersTest extends TestCase
{
use RefreshDatabase;
/**
* @throws JsonException
*/
public function test_connect_hetzner(): void
{
$this->actingAs($this->user);
@ -25,7 +21,7 @@ public function test_connect_hetzner(): void
'provider' => ServerProvider::HETZNER,
'name' => 'profile',
'token' => 'token',
])->assertSessionHasNoErrors();
])->assertSessionDoesntHaveErrors();
$this->assertDatabaseHas('server_providers', [
'provider' => ServerProvider::HETZNER,
@ -45,9 +41,6 @@ public function test_see_providers_list(): void
->assertSee($provider->profile);
}
/**
* @throws JsonException
*/
public function test_delete_provider(): void
{
$this->actingAs($this->user);
@ -57,7 +50,7 @@ public function test_delete_provider(): void
]);
$this->delete(route('server-providers.delete', $provider->id))
->assertSessionHasNoErrors();
->assertSessionDoesntHaveErrors();
$this->assertDatabaseMissing('server_providers', [
'id' => $provider->id,