Last active
February 28, 2021 14:18
-
-
Save axelhodler/b72b76d62604b3d3a52ff64b9945db0e to your computer and use it in GitHub Desktop.
ECR Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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