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}' ";