Implement Keystone environment deployments

This commit is contained in:
2026-05-13 16:11:23 +01:00
parent 65d3142d03
commit aa680b25fd
175 changed files with 10258 additions and 740 deletions

View File

@@ -42,7 +42,7 @@ test('index route displays servers for an organisation', function () {
$response = $this->get(route('servers.index', ['organisation' => $organisation->id]));
$response->assertStatus(200);
$response->assertInertia(fn (AssertableInertia $page) => $page
->component('servers/Index'));
->component('servers/Index', false));
});
test('create route returns inertia view', function () {
@@ -50,7 +50,7 @@ test('create route returns inertia view', function () {
$response = $this->get(route('servers.create', ['organisation' => $organisation->id]));
$response->assertStatus(200);
$response->assertInertia(fn (AssertableInertia $page) => $page
->component('servers/Create'));
->component('servers/Create', false));
});
test('store route fails with invalid provider', function () {
@@ -86,6 +86,9 @@ test('store route creates a server with valid data', function () {
]);
$this->partialMock(HetznerService::class, function (MockInterface $mock) use ($network) {
$mock->shouldReceive('forProvider')
->andReturnSelf();
$mock->shouldReceive('createServer')
->once()
->andReturn(new CreatedServer(
@@ -141,5 +144,5 @@ test('show route displays a single server', function () {
$response->assertStatus(200);
$response->assertInertia(fn (AssertableInertia $page) => $page
->component('servers/Show'));
->component('servers/Show', false));
});