Skip to content

Instantly share code, notes, and snippets.

@axelhodler
Last active February 28, 2021 14:18
Show Gist options
  • Save axelhodler/b72b76d62604b3d3a52ff64b9945db0e to your computer and use it in GitHub Desktop.
Save axelhodler/b72b76d62604b3d3a52ff64b9945db0e to your computer and use it in GitHub Desktop.
ECR Test
import { expect as expectCDK, haveResource } from '@aws-cdk/assert';
import * as cdk from '@aws-cdk/core';
import * as Cdktests from '../lib/cdktests-stack';
test('ECR Resource is present', () => {
const app = new cdk.App();
const stack = new Cdktests.CdktestsStack(app, 'MyTestStack');
expectCDK(stack).to(haveResource("AWS::ECR::Repository",{
RepositoryName: 'test'
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment