Skip to content

Commit

Permalink
Correct usage in @aws-cdk/assets-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Feb 22, 2019
1 parent db2a0a0 commit d6695ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/assets-docker/test/test.image-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export = {
// WHEN
asset.repository.addToResourcePolicy(new iam.PolicyStatement()
.addAction('BOOM')
.addPrincipal(new iam.ServicePrincipal('DAMN')));
.addPrincipal(new iam.ServicePrincipal(asset.repository, 'DAMN')));

// THEN
expect(stack).to(haveResource('Custom::ECRAdoptedRepository', {
Expand All @@ -117,7 +117,7 @@ export = {
"Action": "BOOM",
"Effect": "Allow",
"Principal": {
"Service": "DAMN"
"Service": "DAMN.amazonaws.com"
}
}
],
Expand Down

0 comments on commit d6695ad

Please sign in to comment.