mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-08 06:56:02 -04:00
- Proxy: list and delete Traefik ACME certificates from the server proxy page via new TraefikAcmeService and Get/DeleteTraefikCertificate actions - DNS: track ownership and cross-resource references for managed DNS records so records are only deleted when no longer referenced; release records asynchronously on resource deletion via ReleaseManagedDnsRecordsJob and ManagedDnsRecordCleanup; harden Cloudflare provider deletion results - Databases: fail closed on start when prerequisites or the CA certificate are missing (DatabaseStartException, Server::ensureCaCertificate) and clean up stale start activities via ResourceStartActivity - Webhooks: throttle repeated manual webhook signature failures for GitHub, GitLab, Gitea and Bitbucket - Deployments: improve compose build-context handling and compose file load error reporting - Install scripts: rework terminal UI output in install.sh (stable and nightly) - Misc: settings sidebar accordion fixes, log drain toggle rollback, add Serverside to README sponsors - Add migrations and tests covering the above
23 lines
895 B
PHP
23 lines
895 B
PHP
<?php
|
|
|
|
use App\Models\InstanceSettings;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Illuminate\Support\Facades\Cache;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
uses(RefreshDatabase::class);
|
|
|
|
it('reads fresh instance settings in each queued job of a long-running worker', function () {
|
|
InstanceSettings::forceCreate(['id' => 0, 'is_dns_validation_enabled' => false]);
|
|
|
|
// The worker process memoizes the settings with once().
|
|
expect((bool) instanceSettings()->is_dns_validation_enabled)->toBeFalse();
|
|
|
|
// Another process (the web UI) enables the setting. Its model events do not reach this process.
|
|
DB::table('instance_settings')->where('id', 0)->update(['is_dns_validation_enabled' => true]);
|
|
|
|
dispatch(fn () => Cache::put('seen_dns_validation', (bool) instanceSettings()->is_dns_validation_enabled));
|
|
|
|
expect(Cache::get('seen_dns_validation'))->toBeTrue();
|
|
});
|