Skip to content

Commit 2bcb556

Browse files
committed
toolkit lib integ tests
1 parent 2d4170a commit 2bcb556

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
2+
import * as toolkit from '@aws-cdk/toolkit-lib';
3+
import { assemblyFromCdkAppDir, toolkitFromFixture } from './toolkit-helpers';
4+
import { integTest, withDefaultFixture } from '../../lib';
5+
6+
jest.setTimeout(2 * 60 * 60_000); // Includes the time to acquire locks, worst-case single-threaded runtime
7+
8+
integTest(
9+
'toolkit deploy with asset build concurrency',
10+
withDefaultFixture(async (fixture) => {
11+
const tk = toolkitFromFixture(fixture);
12+
13+
const assembly = await assemblyFromCdkAppDir(tk, fixture);
14+
15+
const stacks: toolkit.StackSelector = {
16+
strategy: toolkit.StackSelectionStrategy.PATTERN_MUST_MATCH_SINGLE,
17+
patterns: [fixture.fullStackName('multiple-docker-images')],
18+
};
19+
20+
await tk.deploy(assembly, {
21+
stacks,
22+
assetParallelism: true,
23+
assetBuildConcurrency: 3,
24+
});
25+
await tk.destroy(assembly, { stacks });
26+
}),
27+
);

0 commit comments

Comments
 (0)