mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-28 02:06:37 -04:00
feat(services): open resource settings in a modal with restart limits
Move service application and database settings into an embedded modal with a footer, subtitle helper, and Docker restart-count control. Accept max_restart_count on the service applications API, cap compose YAML collection aliases, and tighten status, backup, and database sidebar layouts.
This commit is contained in:
@@ -28,3 +28,19 @@ it('documents POST for service application actions', function () {
|
||||
->and($openApi['paths'][$actionPaths[2]]['post']['responses']['200']['content']['application/json']['schema']['properties'])
|
||||
->toHaveKey('message');
|
||||
});
|
||||
|
||||
it('documents the service application restart limit setting', function () {
|
||||
$openApi = json_decode(
|
||||
file_get_contents(__DIR__.'/../../openapi.json'),
|
||||
true,
|
||||
flags: JSON_THROW_ON_ERROR,
|
||||
);
|
||||
|
||||
$properties = $openApi['paths']['/services/{uuid}/applications/{app_uuid}']['patch']['requestBody']['content']['application/json']['schema']['properties'];
|
||||
|
||||
expect($properties['max_restart_count'])
|
||||
->toMatchArray([
|
||||
'description' => 'Maximum Docker restart count before Coolify stops the container. Set to 0 to disable the limit.',
|
||||
'minimum' => 0,
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user