mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 21:18:11 -04:00
test: remove tests that do not exercise app code
Remove tests that copy app logic into the test, grep PHP source as text, only check literals, constants, class_exists or PHP built-ins, duplicate other tests, or are always skipped. Keep source checks that guard security and authorization rules. Rename a duplicate Pest helper so the full suite loads, drop the missing v5/Browser path, and remove the CLAUDE.md symlink in favor of AGENTS.md. Correct AGENTS.md: Dusk is not installed and the upgrade script is scripts/upgrade.sh.
This commit is contained in:
@@ -62,20 +62,6 @@ function makeDockerComposeImagePullJob(bool $useBuildServer = false): array
|
||||
return [$job, $reflection, $buildServer, $mainServer];
|
||||
}
|
||||
|
||||
it('pulls image-only compose services before removing running containers', function () {
|
||||
$source = file_get_contents(__DIR__.'/../../app/Jobs/ApplicationDeploymentJob.php');
|
||||
$methodStart = strpos($source, 'private function deploy_docker_compose_buildpack()');
|
||||
$methodEnd = strpos($source, 'private function pull_docker_compose_images()', $methodStart);
|
||||
$deploymentMethod = substr($source, $methodStart, $methodEnd - $methodStart);
|
||||
|
||||
$pullPosition = strpos($deploymentMethod, '$this->pull_docker_compose_images();');
|
||||
$stopPosition = strpos($deploymentMethod, '$this->stop_running_container(force: true);');
|
||||
|
||||
expect($pullPosition)->not->toBeFalse()
|
||||
->and($stopPosition)->not->toBeFalse()
|
||||
->and($pullPosition)->toBeLessThan($stopPosition);
|
||||
});
|
||||
|
||||
it('aborts the deployment when pulling a compose image fails', function () {
|
||||
[$job, $reflection] = makeDockerComposeImagePullJob();
|
||||
$job->failCommands = true;
|
||||
|
||||
Reference in New Issue
Block a user