29 lines
785 B
TypeScript
29 lines
785 B
TypeScript
import * as cdk from 'aws-cdk-lib';
|
|
import { Template } from 'aws-cdk-lib/assertions';
|
|
import { AgentCoreStack } from '../lib/cdk-stack';
|
|
|
|
test('AgentCoreStack synthesizes with empty spec', () => {
|
|
const app = new cdk.App();
|
|
const stack = new AgentCoreStack(app, 'TestStack', {
|
|
spec: {
|
|
name: 'testproject',
|
|
version: 1,
|
|
managedBy: 'CDK' as const,
|
|
runtimes: [],
|
|
memories: [],
|
|
credentials: [],
|
|
evaluators: [],
|
|
onlineEvalConfigs: [],
|
|
configBundles: [],
|
|
policyEngines: [],
|
|
agentCoreGateways: [],
|
|
mcpRuntimeTools: [],
|
|
unassignedTargets: [],
|
|
},
|
|
});
|
|
const template = Template.fromStack(stack);
|
|
template.hasOutput('StackNameOutput', {
|
|
Description: 'Name of the CloudFormation Stack',
|
|
});
|
|
});
|