toBeTrue(); $poolConfig = (string)file_get_contents($poolPath); expect($poolConfig)->toContain('[www]') ->and($poolConfig)->toContain('pm = dynamic') ->and(phpFpmWorkerConfigValue($poolConfig, 'pm.max_children'))->toBeGreaterThanOrEqual(8) ->and(phpFpmWorkerConfigValue($poolConfig, 'pm.start_servers'))->toBeGreaterThanOrEqual(4) ->and(phpFpmWorkerConfigValue($poolConfig, 'pm.min_spare_servers'))->toBeGreaterThanOrEqual(4) ->and(phpFpmWorkerConfigValue($poolConfig, 'pm.max_spare_servers'))->toBeGreaterThanOrEqual(8); }); it('copies the worker pool config into every API PHP image', function (): void { $copyInstruction = 'COPY services/php/php-fpm-pool.conf /usr/local/etc/php-fpm.d/zz-pleno-workers.conf'; $dockerfiles = [ phpFpmWorkerConfigRepoPath('Dockerfile'), phpFpmWorkerConfigRepoPath('Dockerfile.coolify-api'), phpFpmWorkerConfigRepoPath('services/php/Dockerfile'), ]; foreach ($dockerfiles as $dockerfile) { expect(is_file($dockerfile))->toBeTrue(); expect((string)file_get_contents($dockerfile))->toContain($copyInstruction); } });