@aws-cdk-testing/cli-integ
Version:
Integration tests for the AWS CDK CLI
19 lines (15 loc) • 547 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(
'ssm parameter provider error',
withDefaultFixture(async (fixture) => {
await expect(
fixture.cdk(
['synth', fixture.fullStackName('missing-ssm-parameter'), '-c', 'test:ssm-parameter-name=/does/not/exist'],
{
allowErrExit: true,
},
),
).resolves.toContain('SSM parameter not available in account');
}),
);