mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-27 17:55:59 -04:00
fix(applications): persist restart limit state for stopped containers (#11566)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
it('does not keep the unreliable generic stopped container notification path', function () {
|
||||
$statusAction = file_get_contents(__DIR__.'/../../app/Actions/Docker/GetContainersStatus.php');
|
||||
$telegramChannel = file_get_contents(__DIR__.'/../../app/Notifications/Channels/TelegramChannel.php');
|
||||
|
||||
expect($statusAction)->not->toContain('ContainerStopped')
|
||||
->and($telegramChannel)->not->toContain('ContainerStopped')
|
||||
->and(file_exists(__DIR__.'/../../app/Notifications/Container/ContainerStopped.php'))->toBeFalse()
|
||||
->and(file_exists(__DIR__.'/../../resources/views/emails/container-stopped.blade.php'))->toBeFalse();
|
||||
});
|
||||
Reference in New Issue
Block a user