New direction; removed wireguard, readme update
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Data\ServerProviders\CreatedServer;
|
||||
use App\Enums\NetworkType;
|
||||
use App\Enums\ProviderType;
|
||||
use App\Models\Organisation;
|
||||
use App\Models\Provider;
|
||||
@@ -28,7 +27,6 @@ test('index route displays servers for an organisation', function () {
|
||||
$organisation = Organisation::factory()->create();
|
||||
$provider = Provider::factory()->forOrganisation($organisation->id)->create();
|
||||
$network = $organisation->networks()->create([
|
||||
'type' => NetworkType::EXTERNAL,
|
||||
'name' => 'keystone',
|
||||
'external_id' => 'net-12345',
|
||||
'provider_id' => $provider->id,
|
||||
@@ -38,7 +36,7 @@ test('index route displays servers for an organisation', function () {
|
||||
Server::factory()->count(2)->create([
|
||||
'provider_id' => $provider->id,
|
||||
'organisation_id' => $organisation->id,
|
||||
'external_network_id' => $network->id,
|
||||
'network_id' => $network->id,
|
||||
]);
|
||||
|
||||
$response = $this->get(route('servers.index', ['organisation' => $organisation->id]));
|
||||
@@ -81,7 +79,6 @@ test('store route creates a server with valid data', function () {
|
||||
]);
|
||||
|
||||
$network = $organisation->networks()->create([
|
||||
'type' => NetworkType::EXTERNAL,
|
||||
'name' => 'keystone',
|
||||
'external_id' => 'net-12345',
|
||||
'provider_id' => $provider->id,
|
||||
@@ -118,7 +115,7 @@ test('store route creates a server with valid data', function () {
|
||||
'provider_id' => $provider->id,
|
||||
'region' => 'hel1',
|
||||
'os' => 'ubuntu-20.04',
|
||||
'external_network_id' => $network->id,
|
||||
'network_id' => $network->id,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -126,7 +123,6 @@ test('show route displays a single server', function () {
|
||||
$organisation = Organisation::factory()->create();
|
||||
$provider = Provider::factory()->forOrganisation($organisation)->create();
|
||||
$network = $organisation->networks()->create([
|
||||
'type' => NetworkType::EXTERNAL,
|
||||
'name' => 'keystone',
|
||||
'external_id' => 'net-12345',
|
||||
'provider_id' => $provider->id,
|
||||
@@ -134,7 +130,7 @@ test('show route displays a single server', function () {
|
||||
]);
|
||||
$server = Server::factory()->create([
|
||||
'organisation_id' => $organisation->id,
|
||||
'external_network_id' => $network->id,
|
||||
'network_id' => $network->id,
|
||||
'provider_id' => $provider->id,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user