mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-16 16:20:45 +08:00
feat: add native result-file delivery
This commit is contained in:
parent
2803bbcbab
commit
d472dd5a75
65 changed files with 10205 additions and 255 deletions
|
|
@ -66,7 +66,14 @@ test('production assembly keeps secrets in credentials and creates per-bot runti
|
|||
});
|
||||
assert.ok(runtime instanceof Runtime);
|
||||
assert.equal(seen.runtimeOptions.clientSecret, 'host-only-secret');
|
||||
assert.equal(Object.hasOwn(seen.runtimeOptions, 'outboundArtifactsEnabled'), false);
|
||||
assert.match(seen.statePath, /dt_abc\/state\.json$/);
|
||||
await seen.controllerOptions.createRuntime({
|
||||
botId: 'dt_disabled',
|
||||
config: { botId: 'dt_disabled', clientId: 'dingdisabled' },
|
||||
clientSecret: 'host-only-secret',
|
||||
});
|
||||
assert.equal(Object.hasOwn(seen.runtimeOptions, 'outboundArtifactsEnabled'), false);
|
||||
|
||||
await production.close();
|
||||
assert.equal(seen.supervisorClosed, true);
|
||||
|
|
@ -93,6 +100,7 @@ test('production assembly keeps secrets in credentials and creates per-bot runti
|
|||
config: { botId: 'dt_new', clientId: 'dingnew' },
|
||||
clientSecret: 'host-only-secret',
|
||||
});
|
||||
assert.equal(Object.hasOwn(seen.runtimeOptions, 'outboundArtifactsEnabled'), false);
|
||||
const stored = JSON.parse(await readFile(join(directory, 'workspaces.json'), 'utf8'));
|
||||
assert.equal(stored.agentPresets.dt_new, 'router-standard');
|
||||
assert.equal(Object.hasOwn(stored.agentPresets, 'dt_abc'), false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue