mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): add generic worker management entry
This commit is contained in:
@@ -211,6 +211,7 @@ test('ships a path-only Cluster operator context example without durable authori
|
||||
'package',
|
||||
'package-kubernetes',
|
||||
'run',
|
||||
'worker',
|
||||
'worker-credential',
|
||||
]);
|
||||
for (const [name, command] of Object.entries(example.commands)) {
|
||||
@@ -753,13 +754,16 @@ test('rejects widened authority or lifecycle in the Worker management client', (
|
||||
}
|
||||
});
|
||||
|
||||
test('requires the production Worker credential management client export and binary', () => {
|
||||
test('requires both read-only Worker and credential-compatible client entrypoints', () => {
|
||||
const report = auditClusterDeployment({
|
||||
root: ROOT,
|
||||
readFile: intercept('packages/ql3-cluster-admin/package.json', (source) => {
|
||||
const manifest = JSON.parse(source);
|
||||
delete manifest.bin['ql3-worker-credential-client'];
|
||||
delete manifest.bin['ql3-worker-client'];
|
||||
delete manifest.exports['./worker-credential-management-client'];
|
||||
delete manifest.exports['./worker-management-client'];
|
||||
delete manifest.exports['./worker-management-product'];
|
||||
return JSON.stringify(manifest);
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -340,10 +340,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
|
||||
rootSourceFileRoles: clusterAdmin.rootSourceFileRoles,
|
||||
},
|
||||
{
|
||||
sourceFiles: 125,
|
||||
sourceFiles: 128,
|
||||
rootSourceFiles: 1,
|
||||
rootSourceLines: 61,
|
||||
nestedSourceFiles: 124,
|
||||
nestedSourceFiles: 127,
|
||||
rootSourceFileRoles: {
|
||||
'modelInvocationMigrationCli.ts': 'binary_entry',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user