From e2f527fc7bd387de138b0fb22b985d53e95d186e Mon Sep 17 00:00:00 2001 From: Joao Patricio Date: Thu, 30 Mar 2023 09:04:44 +0100 Subject: [PATCH] wip --- bootstrap/helpers.php | 8 -------- tests/Feature/DockerCommandsTest.php | 4 ++++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bootstrap/helpers.php b/bootstrap/helpers.php index 4ab8cc875..494bb6470 100644 --- a/bootstrap/helpers.php +++ b/bootstrap/helpers.php @@ -34,10 +34,6 @@ function remoteProcess( ])(); } function checkServer(string $destination){ - - // Temp early return. Just to make GHAction pass - return; - // @TODO: Use UUID instead of name $found_server = Server::where('name', $destination)->first(); if (!$found_server) { @@ -46,10 +42,6 @@ function checkServer(string $destination){ return $found_server; } function checkTeam(string $team_id){ - - // Temp early return. Just to make GHAction pass - return; - $found_team = auth()->user()->teams->pluck('id')->contains($team_id); if (!$found_team) { throw new \RuntimeException('You do not have access to this server.'); diff --git a/tests/Feature/DockerCommandsTest.php b/tests/Feature/DockerCommandsTest.php index 8fc551a04..e1ce68c73 100644 --- a/tests/Feature/DockerCommandsTest.php +++ b/tests/Feature/DockerCommandsTest.php @@ -1,9 +1,13 @@ actingAs(User::factory()->create()); + + $coolifyNamePrefix = 'coolify_test_'; $format = '{"ID":"{{ .ID }}", "Image": "{{ .Image }}", "Names":"{{ .Names }}"}'; $areThereCoolifyTestContainers = "docker ps --filter=\"name={$coolifyNamePrefix}*\" --format '{$format}' ";