mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-08-28 02:44:59 +00:00
test: cover legacy provider resolution
This commit is contained in:
parent
a02ba2f6a8
commit
850c621c19
1 changed files with 16 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import type { AgentConfig } from '@veritas-kanban/shared';
|
|||
import { ClawdbotAgentService } from '../services/clawdbot-agent-service.js';
|
||||
import type { AgentHealthChecker } from '../services/agent-health-service.js';
|
||||
import { normalizeHarnessSupportProfile } from '../services/harness-support-profile-registry.js';
|
||||
import { resolveExecutableAgentProvider } from '../services/provider-runtime-resolution.js';
|
||||
|
||||
const originalOpenClawVersion = process.env.OPENCLAW_GATEWAY_VERSION;
|
||||
|
||||
|
|
@ -46,6 +47,21 @@ function config(provider: AgentConfig['provider']): AgentConfig {
|
|||
}
|
||||
|
||||
describe('ClawdbotAgentService provider runtime adapters', () => {
|
||||
it('preserves the known legacy Codex command migration', () => {
|
||||
expect(
|
||||
resolveExecutableAgentProvider(
|
||||
{
|
||||
type: 'codex',
|
||||
name: 'Codex',
|
||||
command: '/usr/local/bin/codex',
|
||||
args: [],
|
||||
enabled: true,
|
||||
},
|
||||
'codex'
|
||||
)
|
||||
).toBe('codex-cli');
|
||||
});
|
||||
|
||||
it.each([['amp', 'amp']] as const)(
|
||||
'fails closed when the provider-less %s display profile is probed',
|
||||
async (type, command) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue