Files
coolify/tests/Unit/SecretManagerLayoutConsistencyTest.php
T
Andras Bacsai f49c330d9d feat(database): queue starts and resolve credentials securely
Extract database start command execution into a shared service and job, preserving activity tracking and status events while supporting resolved secret credentials.
2026-08-23 22:33:03 +02:00

16 lines
806 B
PHP

<?php
it('shows environment variables before the optional secret manager for every resource type', function (string $view, string $resource) {
$source = file_get_contents(__DIR__."/../../resources/views/livewire/project/{$view}/configuration.blade.php");
$environmentVariables = '<livewire:project.shared.environment-variable.all :resource="$'.$resource.'" />';
$secretManager = '<livewire:project.shared.secret-manager-links :resource="$'.$resource.'" />';
expect($source)
->toContain($environmentVariables, $secretManager)
->and(strpos($source, $environmentVariables))->toBeLessThan(strpos($source, $secretManager));
})->with([
'application' => ['application', 'application'],
'database' => ['database', 'database'],
'service' => ['service', 'service'],
]);