t
Some checks failed
BEND FIELD CI / release (push) Has been cancelled
BEND FIELD CI / production-bridge (push) Has been cancelled

This commit is contained in:
33333-33333 2026-08-01 22:31:04 +09:00
commit 9d70afb4cc
42 changed files with 1266 additions and 630 deletions

View file

@ -11,12 +11,15 @@ const {renderApacheBridge}=require('../server/apache-bridge');
const app=fs.readFileSync(require.resolve('../app.js'),'utf8');
const php=fs.readFileSync(require.resolve('../api-bridge.php'),'utf8');
assert.match(runtime,/api-bridge\.php/);
assert.match(runtime,/realtimeTransport:'http-poll'/);
assert.match(runtime,/realtimeTransport:'auto'/);
assert.match(app,/\/api\/realtime\/connect/);
assert.match(app,/\/api\/realtime\/poll/);
assert.match(app,/x-linkfield-authorization/);
assert.match(app,/wait:bridge\?'0':'20000'/);
assert.match(php,/\.linkfield-port/);
assert.match(php,/X-LinkField-Authorization/i);
assert.doesNotMatch(php,/file_get_contents\('php:\/\/input'\)/);
assert.match(php,/php:\/\/temp\/maxmemory:1048576/);
assert.match(renderApacheBridge(4312),/api-bridge\.php\?path=\/api\/\$1 \[QSA,L\]/);
const phpCheck=spawnSync('php',['-l',require.resolve('../api-bridge.php')],{encoding:'utf8'});
if(!phpCheck.error)assert.equal(phpCheck.status,0,phpCheck.stderr||phpCheck.stdout);