@aws-cdk-testing/cli-integ
Version:
Integration tests for the AWS CDK CLI
22 lines (16 loc) • 707 B
text/typescript
import { integTest, withoutBootstrap } from '../../lib';
jest.setTimeout(2 * 60 * 60_000); // Includes the time to acquire locks, worst-case single-threaded runtime
integTest('can and deploy if omitting execution policies', withoutBootstrap(async (fixture) => {
const bootstrapStackName = fixture.bootstrapStackName;
await fixture.cdkBootstrapModern({
toolkitStackName: bootstrapStackName,
});
// Deploy stack that uses file assets
await fixture.cdkDeploy('lambda', {
options: [
'--toolkit-stack-name', bootstrapStackName,
'--context', `@aws-cdk/core:bootstrapQualifier=${fixture.qualifier}`,
'--context', '@aws-cdk/core:newStyleStackSynthesis=1',
],
});
}));