Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

wip

Joao Patricioe2f527fc7bd3
diff --git a/bootstrap/helpers.php b/bootstrap/helpers.php
index 4ab8cc8759..494bb64702 100644
--- a/bootstrap/helpers.php
+++ b/bootstrap/helpers.php
@@ -34,10 +34,6 @@ if (!function_exists('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 @@ if (!function_exists('remoteProcess')) {
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 8fc551a04e..e1ce68c73a 100644
--- a/tests/Feature/DockerCommandsTest.php
+++ b/tests/Feature/DockerCommandsTest.php
@@ -1,9 +1,13 @@
<?php
+use App\Models\User;
use Tests\Support\Output;
it('starts a docker container correctly', function () {
+ test()->actingAs(User::factory()->create());
+
+
$coolifyNamePrefix = 'coolify_test_';
$format = '{"ID":"{{ .ID }}", "Image": "{{ .Image }}", "Names":"{{ .Names }}"}';
$areThereCoolifyTestContainers = "docker ps --filter=\"name={$coolifyNamePrefix}*\" --format '{$format}' ";