mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
refactoring (#116)
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user