@aws-cdk-testing/cli-integ
Version:
Integration tests for the AWS CDK CLI
27 lines (22 loc) • 834 B
text/typescript
import { integTest, withDefaultFixture } from '../../lib';
jest.setTimeout(2 * 60 * 60_000); // Includes the time to acquire locks, worst-case single-threaded runtime
integTest(
'skips notice refresh',
withDefaultFixture(async (fixture) => {
const output = await fixture.cdkSynth({
options: ['--no-notices'],
modEnv: {
INTEG_STACK_SET: 'stage-using-context',
},
allowErrExit: true,
});
// Neither succeeds nor fails, but skips the refresh
await expect(output).not.toContain('Notices refreshed');
await expect(output).not.toContain('Notices refresh failed');
}),
);
/**
* Create an S3 bucket, orphan that bucket, then import the bucket, with a NodeJSFunction lambda also in the stack.
*
* Validates fix for https://github.com/aws/aws-cdk/issues/31999 (import fails)
*/