@@ -4,6 +4,7 @@ import { Capture, Match, Template } from '@aws-cdk/assertions';
4
4
import * as cb from '@aws-cdk/aws-codebuild' ;
5
5
import * as ec2 from '@aws-cdk/aws-ec2' ;
6
6
import { Stack , Stage } from '@aws-cdk/core' ;
7
+ import { CDKP_DEFAULT_CODEBUILD_IMAGE } from '../../lib/private/default-codebuild-image' ;
7
8
import { behavior , PIPELINE_ENV , TestApp , LegacyTestGitHubNpmPipeline , ModernTestGitHubNpmPipeline , FileAssetApp , MegaAssetsApp , TwoFileAssetsApp , DockerAssetApp , PlainStackApp , stringLike } from '../testhelpers' ;
8
9
9
10
const FILE_ASSET_SOURCE_HASH = '8289faf53c7da377bb2b90615999171adef5e1d8f6b88810e5fef75e6ca09ba5' ;
@@ -187,7 +188,7 @@ describe('basic pipeline', () => {
187
188
function THEN_codePipelineExpectation ( ) {
188
189
Template . fromStack ( pipelineStack ) . hasResourceProperties ( 'AWS::CodeBuild::Project' , {
189
190
Environment : {
190
- Image : 'aws/codebuild/standard:5.0' ,
191
+ Image : CDKP_DEFAULT_CODEBUILD_IMAGE . imageId ,
191
192
} ,
192
193
Source : {
193
194
BuildSpec : Match . serializedJson ( Match . objectLike ( {
@@ -288,7 +289,7 @@ describe('basic pipeline', () => {
288
289
} ,
289
290
Environment : Match . objectLike ( {
290
291
PrivilegedMode : false ,
291
- Image : 'aws/codebuild/standard:5.0' ,
292
+ Image : CDKP_DEFAULT_CODEBUILD_IMAGE . imageId ,
292
293
} ) ,
293
294
} ) ;
294
295
}
@@ -321,7 +322,7 @@ describe('basic pipeline', () => {
321
322
} ) ) ,
322
323
} ,
323
324
Environment : Match . objectLike ( {
324
- Image : 'aws/codebuild/standard:5.0' ,
325
+ Image : CDKP_DEFAULT_CODEBUILD_IMAGE . imageId ,
325
326
PrivilegedMode : true ,
326
327
} ) ,
327
328
} ) ;
@@ -350,7 +351,7 @@ describe('basic pipeline', () => {
350
351
function THEN_codePipelineExpectation ( ) {
351
352
Template . fromStack ( pipelineStack ) . hasResourceProperties ( 'AWS::CodeBuild::Project' , {
352
353
Environment : {
353
- Image : 'aws/codebuild/standard:5.0' ,
354
+ Image : CDKP_DEFAULT_CODEBUILD_IMAGE . imageId ,
354
355
} ,
355
356
Source : {
356
357
BuildSpec : Match . serializedJson ( Match . objectLike ( {
@@ -593,7 +594,7 @@ behavior('can supply pre-install scripts to asset upload', (suite) => {
593
594
function THEN_codePipelineExpectation ( ) {
594
595
Template . fromStack ( pipelineStack ) . hasResourceProperties ( 'AWS::CodeBuild::Project' , {
595
596
Environment : {
596
- Image : 'aws/codebuild/standard:5.0' ,
597
+ Image : CDKP_DEFAULT_CODEBUILD_IMAGE . imageId ,
597
598
} ,
598
599
Source : {
599
600
BuildSpec : Match . serializedJson ( Match . objectLike ( {
@@ -770,7 +771,7 @@ describe('pipeline with single asset publisher', () => {
770
771
} ) ;
771
772
Template . fromStack ( pipelineStack ) . hasResourceProperties ( 'AWS::CodeBuild::Project' , {
772
773
Environment : {
773
- Image : 'aws/codebuild/standard:5.0' ,
774
+ Image : CDKP_DEFAULT_CODEBUILD_IMAGE . imageId ,
774
775
} ,
775
776
Source : {
776
777
BuildSpec : buildSpecName ,
@@ -898,7 +899,7 @@ describe('pipeline with custom asset publisher BuildSpec', () => {
898
899
} ) ;
899
900
Template . fromStack ( pipelineStack ) . hasResourceProperties ( 'AWS::CodeBuild::Project' , {
900
901
Environment : {
901
- Image : 'aws/codebuild/standard:5.0' ,
902
+ Image : CDKP_DEFAULT_CODEBUILD_IMAGE . imageId ,
902
903
} ,
903
904
Source : {
904
905
BuildSpec : buildSpecName ,
0 commit comments