@@ -120,7 +120,7 @@ void shouldPushCoreImage() throws Exception {
120120 String expectedTag = "123.dkr.ecr.test-region.amazonaws.com/test-instance/statestore-lambda:1.0.0" ;
121121 assertThat (commandsThatRan ).containsExactly (
122122 dockerLoginToEcrCommand (),
123- buildImageCommandWithArgs ( "-t" , expectedTag , "./docker/lambda" ),
123+ buildLambdaImageCommand ( expectedTag , "./docker/lambda" ),
124124 pushImageCommand (expectedTag ));
125125 assertThat (files ).isEqualTo (Map .of (
126126 Path .of ("./jars/statestore.jar" ), "statestore-jar-content" ,
@@ -143,9 +143,9 @@ void shouldPushImageForCoreAndOptionalLambdaInNewInstance() throws Exception {
143143 String expectedTag2 = "123.dkr.ecr.test-region.amazonaws.com/test-instance/ingest-task-creator-lambda:1.0.0" ;
144144 assertThat (commandsThatRan ).containsExactly (
145145 dockerLoginToEcrCommand (),
146- buildImageCommandWithArgs ( "-t" , expectedTag1 , "./docker/lambda" ),
146+ buildLambdaImageCommand ( expectedTag1 , "./docker/lambda" ),
147147 pushImageCommand (expectedTag1 ),
148- buildImageCommandWithArgs ( "-t" , expectedTag2 , "./docker/lambda" ),
148+ buildLambdaImageCommand ( expectedTag2 , "./docker/lambda" ),
149149 pushImageCommand (expectedTag2 ));
150150 assertThat (files ).isEqualTo (Map .of (
151151 Path .of ("./jars/statestore.jar" ), "statestore-jar-content" ,
@@ -169,7 +169,7 @@ void shouldPushImageForOptionalLambdaWhenAdded() throws Exception {
169169 String expectedTag = "123.dkr.ecr.test-region.amazonaws.com/test-instance/ingest-task-creator-lambda:1.0.0" ;
170170 assertThat (commandsThatRan ).containsExactly (
171171 dockerLoginToEcrCommand (),
172- buildImageCommandWithArgs ( "-t" , expectedTag , "./docker/lambda" ),
172+ buildLambdaImageCommand ( expectedTag , "./docker/lambda" ),
173173 pushImageCommand (expectedTag ));
174174 assertThat (files ).isEqualTo (Map .of (
175175 Path .of ("./jars/ingest.jar" ), "ingest-jar-content" ,
@@ -192,7 +192,7 @@ void shouldPushImageForOptionalLambdaWhenOneOfItsStacksIsAdded() throws Exceptio
192192 String expectedTag = "123.dkr.ecr.test-region.amazonaws.com/test-instance/bulk-import-starter-lambda:1.0.0" ;
193193 assertThat (commandsThatRan ).containsExactly (
194194 dockerLoginToEcrCommand (),
195- buildImageCommandWithArgs ( "-t" , expectedTag , "./docker/lambda" ),
195+ buildLambdaImageCommand ( expectedTag , "./docker/lambda" ),
196196 pushImageCommand (expectedTag ));
197197 assertThat (files ).isEqualTo (Map .of (
198198 Path .of ("./jars/bulk-import-starter.jar" ), "bulk-import-starter-jar-content" ,
@@ -215,7 +215,7 @@ void shouldPushImageForOptionalLambdaWhenSeveralOfItsStacksAreAdded() throws Exc
215215 String expectedTag = "123.dkr.ecr.test-region.amazonaws.com/test-instance/bulk-import-starter-lambda:1.0.0" ;
216216 assertThat (commandsThatRan ).containsExactly (
217217 dockerLoginToEcrCommand (),
218- buildImageCommandWithArgs ( "-t" , expectedTag , "./docker/lambda" ),
218+ buildLambdaImageCommand ( expectedTag , "./docker/lambda" ),
219219 pushImageCommand (expectedTag ));
220220 assertThat (files ).isEqualTo (Map .of (
221221 Path .of ("./jars/bulk-import-starter.jar" ), "bulk-import-starter-jar-content" ,
@@ -249,7 +249,7 @@ void shouldDeployLambdaByDockerWhenConfiguredToAlwaysDeployByDocker() throws Exc
249249 String expectedTag = "123.dkr.ecr.test-region.amazonaws.com/test-instance/athena-lambda:1.0.0" ;
250250 assertThat (commandsThatRan ).containsExactly (
251251 dockerLoginToEcrCommand (),
252- buildImageCommandWithArgs ( "-t" , expectedTag , "./docker/lambda" ),
252+ buildLambdaImageCommand ( expectedTag , "./docker/lambda" ),
253253 pushImageCommand (expectedTag ));
254254 assertThat (files ).isEqualTo (Map .of (
255255 Path .of ("./jars/athena.jar" ), "athena-jar-content" ,
0 commit comments