mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-23 12:23:46 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
co-authored by
ShadowArcanist
parent
0b843bb07c
commit
8ae56587d5
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Runtime Logs must query Docker with the label that matches the resource type.
|
||||
* Applications use coolify.applicationId, services coolify.serviceId, databases coolify.databaseId.
|
||||
* Using the application helper for services/databases returns empty results even when containers run.
|
||||
*/
|
||||
it('looks up containers with the correct helper for each resource type', function () {
|
||||
$logsFile = file_get_contents(__DIR__.'/../../app/Livewire/Project/Shared/Logs.php');
|
||||
|
||||
expect($logsFile)
|
||||
->toContain('getCurrentApplicationContainerStatus(')
|
||||
->toContain('getCurrentServiceContainerStatus(')
|
||||
->toContain('getCurrentDatabaseContainerStatus(')
|
||||
->toContain('$this->resource instanceof Application')
|
||||
->toContain('$this->resource instanceof Service');
|
||||
});
|
||||
|
||||
it('filters application containers by coolify.applicationId', function () {
|
||||
$dockerHelpers = file_get_contents(__DIR__.'/../../bootstrap/helpers/docker.php');
|
||||
|
||||
expect($dockerHelpers)->toContain('label=coolify.applicationId=');
|
||||
});
|
||||
|
||||
it('filters service and database containers by the correct coolify labels', function () {
|
||||
$dockerHelpers = file_get_contents(__DIR__.'/../../bootstrap/helpers/docker.php');
|
||||
|
||||
expect($dockerHelpers)
|
||||
->toContain('function getCurrentServiceContainerStatus')
|
||||
->toContain('label=coolify.serviceId=')
|
||||
->toContain('function getCurrentDatabaseContainerStatus')
|
||||
->toContain('label=coolify.databaseId=');
|
||||
});
|
||||
Reference in New Issue
Block a user