mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 20:17:05 +00:00
Merge remote-tracking branch 'origin/next' into celld-one-click-service
This commit is contained in:
commit
da43086a32
100 files changed
+1349
-493
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
test('deployment log timestamps omit microseconds', function () {
|
||||
$helper = file_get_contents(dirname(__DIR__, 2).'/bootstrap/helpers/remoteProcess.php');
|
||||
|
||||
expect($helper)
|
||||
->toContain("->format('Y-M-d H:i:s')")
|
||||
->not->toContain("->format('Y-M-d H:i:s.u')");
|
||||
});
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
test('sentinel startup regenerates an empty endpoint from instance settings', function () {
|
||||
$action = file_get_contents(dirname(__DIR__, 2).'/app/Actions/Server/StartSentinel.php');
|
||||
$component = file_get_contents(dirname(__DIR__, 2).'/app/Livewire/Server/Sentinel.php');
|
||||
|
||||
expect($action)
|
||||
->toContain('ensureSentinelUrl()')
|
||||
->and($component)
|
||||
->toContain('$this->sentinelCustomUrl = $this->server->settings->sentinel_custom_url;')
|
||||
->and(file_get_contents(dirname(__DIR__, 2).'/app/Models/ServerSetting.php'))
|
||||
->toContain('generateSentinelUrl(ignoreEvent: true)')
|
||||
->toContain('sentinelUrlFromCurrentRequest()')
|
||||
->toContain('Set an instance FQDN, public IP, or reachable Coolify URL before enabling Sentinel.')
|
||||
->and($component)
|
||||
->toContain('$this->sentinelCustomUrl = $this->server->settings->sentinel_custom_url;');
|
||||
});
|
||||
Reference in new issue
Block a user