Skip to content

Commit 548bdcf

Browse files
committed
chore: move over integ tests
1 parent 59526e8 commit 548bdcf

319 files changed

Lines changed: 21687 additions & 76 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/integ.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.yml

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,89 @@ new BundleCli(integRunner, {
16481648

16491649
//////////////////////////////////////////////////////////////////////
16501650

1651+
const cliInteg = configureProject(
1652+
new yarn.TypeScriptWorkspace({
1653+
...genericCdkProps(),
1654+
parent: repo,
1655+
name: '@aws-cdk-testing/cli-integ',
1656+
description: 'Integration tests for the AWS CDK CLI',
1657+
1658+
// We set the majorVersion of this to 3.x, so that we can release
1659+
// it already without interfering with the current crop of CDK
1660+
// integ tests.
1661+
majorVersion: 3,
1662+
1663+
srcdir: '.',
1664+
libdir: '.',
1665+
deps: [
1666+
'@octokit/rest@^18.12.0',
1667+
`@aws-sdk/client-codeartifact@${CLI_SDK_V3_RANGE}`,
1668+
`@aws-sdk/client-cloudformation@${CLI_SDK_V3_RANGE}`,
1669+
`@aws-sdk/client-ecr@${CLI_SDK_V3_RANGE}`,
1670+
`@aws-sdk/client-ecr-public@${CLI_SDK_V3_RANGE}`,
1671+
`@aws-sdk/client-ecs@${CLI_SDK_V3_RANGE}`,
1672+
`@aws-sdk/client-iam@${CLI_SDK_V3_RANGE}`,
1673+
`@aws-sdk/client-lambda@${CLI_SDK_V3_RANGE}`,
1674+
`@aws-sdk/client-s3@${CLI_SDK_V3_RANGE}`,
1675+
`@aws-sdk/client-sns@${CLI_SDK_V3_RANGE}`,
1676+
`@aws-sdk/client-sso@${CLI_SDK_V3_RANGE}`,
1677+
`@aws-sdk/client-sts@${CLI_SDK_V3_RANGE}`,
1678+
`@aws-sdk/credential-providers@${CLI_SDK_V3_RANGE}`,
1679+
`@smithy/util-retry@${CLI_SDK_V3_RANGE}`,
1680+
`@smithy/types@${CLI_SDK_V3_RANGE}`,
1681+
'@cdklabs/cdk-atmosphere-client',
1682+
'axios@^1',
1683+
'chalk@^4',
1684+
'fs-extra@^9',
1685+
'glob@^7',
1686+
'make-runnable@^1',
1687+
'mockttp@^3',
1688+
'npm@^8',
1689+
'p-queue@^6',
1690+
'semver@^7',
1691+
'sinon@^9',
1692+
'ts-mock-imports@^1',
1693+
'yaml@1',
1694+
'yargs@^17',
1695+
// Jest is a runtime dependency here!
1696+
'jest@^29',
1697+
'jest-junit@^15',
1698+
'ts-jest@^29',
1699+
'node-pty',
1700+
],
1701+
devDeps: [
1702+
'@types/semver@^7',
1703+
'@types/yargs@^15',
1704+
'@types/fs-extra@^9',
1705+
'@types/glob@^7',
1706+
],
1707+
bin: {
1708+
'run-suite': 'bin/run-suite',
1709+
'download-and-run-old-tests': 'bin/download-and-run-old-tests',
1710+
'query-github': 'bin/query-github',
1711+
'apply-patches': 'bin/apply-patches',
1712+
'test-root': 'bin/test-root',
1713+
'stage-distribution': 'bin/stage-distribution',
1714+
},
1715+
tsconfig: {
1716+
compilerOptions: {
1717+
esModuleInterop: false,
1718+
},
1719+
include: ['**/*.ts'],
1720+
exclude: ['resources/**/*'],
1721+
},
1722+
}),
1723+
);
1724+
1725+
const compiledDirs = ['tests', 'test', 'lib'];
1726+
for (const compiledDir of compiledDirs) {
1727+
cliInteg.gitignore.addPatterns(`${compiledDir}/**/*.js`);
1728+
cliInteg.gitignore.addPatterns(`${compiledDir}/**/*.d.ts`);
1729+
}
1730+
cliInteg.gitignore.addPatterns('!resources/**/*.js');
1731+
1732+
//////////////////////////////////////////////////////////////////////
1733+
16511734
// The pj.github.Dependabot component is only for a single Node project,
16521735
// but we need multiple non-Node projects
16531736
new pj.YamlFile(repo, '.github/dependabot.yml', {
@@ -1687,6 +1770,7 @@ new CdkCliIntegTestsWorkflow(repo, {
16871770
cli.name,
16881771
cliLib.name,
16891772
cdkAliasPackage.name,
1773+
cliInteg.name,
16901774
],
16911775

16921776
allowUpstreamVersions: [

aws-cdk-cli.code-workspace

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/cli-integ/.eslintrc.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)