Integrate Coolify API client and module for managing Coolify services, enhancing automation and deployment processes.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
it('allows release telemetry headers at PHP-served CORS entry points', function (): void {
|
||||
$requiredHeaders = [
|
||||
'X-Release-Trace',
|
||||
'X-Release-Channel',
|
||||
'X-Frontend-Version',
|
||||
];
|
||||
|
||||
$files = [
|
||||
app_path('index.php'),
|
||||
app_path('modules/washcertificates/index.php'),
|
||||
];
|
||||
|
||||
foreach ($files as $file) {
|
||||
expect(is_file($file))->toBeTrue();
|
||||
$content = (string)file_get_contents($file);
|
||||
|
||||
foreach ($requiredHeaders as $header) {
|
||||
expect($content)->toContain($header);
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user