feat: add shadow LangGraph orchestrator runtime
This commit is contained in:
+10
-3
@@ -129,8 +129,13 @@ test('admin orchestrator routes expose a versioned plug-in control plane', async
|
||||
updates.push({ config, context });
|
||||
return { ...state, config: { ...state.config, ...config }, configVersion: 2 };
|
||||
},
|
||||
async getRuntimeState() {
|
||||
return { ...state, source: 'admin-db' };
|
||||
async getRuntimeState(options) {
|
||||
assert.deepEqual(options, { probe: true });
|
||||
return {
|
||||
...state,
|
||||
source: 'admin-db',
|
||||
serviceHealth: { ok: true, status: 'healthy' },
|
||||
};
|
||||
},
|
||||
},
|
||||
plazaPosts: null,
|
||||
@@ -166,7 +171,9 @@ test('admin orchestrator routes expose a versioned plug-in control plane', async
|
||||
headers: { cookie: 'h5_user_session=token-admin' },
|
||||
});
|
||||
assert.equal(runtimeResponse.status, 200);
|
||||
assert.equal((await runtimeResponse.json()).source, 'admin-db');
|
||||
const runtimeBody = await runtimeResponse.json();
|
||||
assert.equal(runtimeBody.source, 'admin-db');
|
||||
assert.equal(runtimeBody.serviceHealth.status, 'healthy');
|
||||
} finally {
|
||||
await server.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user