@@ -33,8 +33,8 @@ func TestNewBackendSvc(t *testing.T) {
3333 Type : aws .String (BackendServiceType ),
3434 },
3535 BackendServiceConfig : BackendServiceConfig {
36- ImageConfig : ImageWithPortAndHealthcheck {
37- ImageWithPort : ImageWithPort {
36+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
37+ ImageWithOptionalPort : ImageWithOptionalPort {
3838 Image : Image {
3939 Build : BuildArgsOrString {
4040 BuildArgs : DockerBuildArgs {
@@ -79,8 +79,8 @@ func TestNewBackendSvc(t *testing.T) {
7979 Type : aws .String (BackendServiceType ),
8080 },
8181 BackendServiceConfig : BackendServiceConfig {
82- ImageConfig : ImageWithPortAndHealthcheck {
83- ImageWithPort : ImageWithPort {
82+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
83+ ImageWithOptionalPort : ImageWithOptionalPort {
8484 Image : Image {
8585 Location : aws .String ("mockImage" ),
8686 },
@@ -190,8 +190,8 @@ func TestBackendService_Port(t *testing.T) {
190190 "returns the port value and sets ok to true if a port is exposed" : {
191191 mft : & BackendService {
192192 BackendServiceConfig : BackendServiceConfig {
193- ImageConfig : ImageWithPortAndHealthcheck {
194- ImageWithPort : ImageWithPort {
193+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
194+ ImageWithOptionalPort : ImageWithOptionalPort {
195195 Port : uint16P (80 ),
196196 },
197197 },
@@ -262,8 +262,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
262262 Type : aws .String (BackendServiceType ),
263263 },
264264 BackendServiceConfig : BackendServiceConfig {
265- ImageConfig : ImageWithPortAndHealthcheck {
266- ImageWithPort : ImageWithPort {
265+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
266+ ImageWithOptionalPort : ImageWithOptionalPort {
267267 Image : Image {
268268 Build : BuildArgsOrString {
269269 BuildArgs : DockerBuildArgs {
@@ -292,8 +292,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
292292 }
293293 mockBackendServiceWithNilEnvironment := BackendService {
294294 BackendServiceConfig : BackendServiceConfig {
295- ImageConfig : ImageWithPortAndHealthcheck {
296- ImageWithPort : ImageWithPort {
295+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
296+ ImageWithOptionalPort : ImageWithOptionalPort {
297297 Port : aws .Uint16 (80 ),
298298 },
299299 },
@@ -304,16 +304,16 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
304304 }
305305 mockBackendServiceWithMinimalOverride := BackendService {
306306 BackendServiceConfig : BackendServiceConfig {
307- ImageConfig : ImageWithPortAndHealthcheck {
308- ImageWithPort : ImageWithPort {
307+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
308+ ImageWithOptionalPort : ImageWithOptionalPort {
309309 Port : aws .Uint16 (80 ),
310310 },
311311 },
312312 },
313313 Environments : map [string ]* BackendServiceConfig {
314314 "test" : {
315- ImageConfig : ImageWithPortAndHealthcheck {
316- ImageWithPort : ImageWithPort {
315+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
316+ ImageWithOptionalPort : ImageWithOptionalPort {
317317 Port : aws .Uint16 (5000 ),
318318 },
319319 },
@@ -322,8 +322,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
322322 }
323323 mockBackendServiceWithAllOverride := BackendService {
324324 BackendServiceConfig : BackendServiceConfig {
325- ImageConfig : ImageWithPortAndHealthcheck {
326- ImageWithPort : ImageWithPort {
325+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
326+ ImageWithOptionalPort : ImageWithOptionalPort {
327327 Port : aws .Uint16 (80 ),
328328 Image : Image {
329329 DockerLabels : map [string ]string {
@@ -355,8 +355,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
355355 },
356356 Environments : map [string ]* BackendServiceConfig {
357357 "test" : {
358- ImageConfig : ImageWithPortAndHealthcheck {
359- ImageWithPort : ImageWithPort {
358+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
359+ ImageWithOptionalPort : ImageWithOptionalPort {
360360 Image : Image {
361361 DockerLabels : map [string ]string {
362362 "com.amazonaws.ecs.copilot.description" : "Overridden!" ,
@@ -395,8 +395,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
395395 Type : aws .String (BackendServiceType ),
396396 },
397397 BackendServiceConfig : BackendServiceConfig {
398- ImageConfig : ImageWithPortAndHealthcheck {
399- ImageWithPort : ImageWithPort {
398+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
399+ ImageWithOptionalPort : ImageWithOptionalPort {
400400 Image : Image {
401401 Build : BuildArgsOrString {
402402 BuildArgs : DockerBuildArgs {
@@ -409,8 +409,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
409409 },
410410 Environments : map [string ]* BackendServiceConfig {
411411 "prod-iad" : {
412- ImageConfig : ImageWithPortAndHealthcheck {
413- ImageWithPort : ImageWithPort {
412+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
413+ ImageWithOptionalPort : ImageWithOptionalPort {
414414 Image : Image {
415415 Location : aws .String ("env-override location" ),
416416 },
@@ -425,8 +425,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
425425 Type : aws .String (BackendServiceType ),
426426 },
427427 BackendServiceConfig : BackendServiceConfig {
428- ImageConfig : ImageWithPortAndHealthcheck {
429- ImageWithPort : ImageWithPort {
428+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
429+ ImageWithOptionalPort : ImageWithOptionalPort {
430430 Image : Image {
431431 Location : aws .String ("original location" ),
432432 },
@@ -435,8 +435,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
435435 },
436436 Environments : map [string ]* BackendServiceConfig {
437437 "prod-iad" : {
438- ImageConfig : ImageWithPortAndHealthcheck {
439- ImageWithPort : ImageWithPort {
438+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
439+ ImageWithOptionalPort : ImageWithOptionalPort {
440440 Image : Image {
441441 Location : aws .String ("env-override location" ),
442442 },
@@ -451,8 +451,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
451451 Type : aws .String (BackendServiceType ),
452452 },
453453 BackendServiceConfig : BackendServiceConfig {
454- ImageConfig : ImageWithPortAndHealthcheck {
455- ImageWithPort : ImageWithPort {
454+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
455+ ImageWithOptionalPort : ImageWithOptionalPort {
456456 Image : Image {
457457 Build : BuildArgsOrString {
458458 BuildArgs : DockerBuildArgs {
@@ -466,8 +466,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
466466 },
467467 Environments : map [string ]* BackendServiceConfig {
468468 "prod-iad" : {
469- ImageConfig : ImageWithPortAndHealthcheck {
470- ImageWithPort : ImageWithPort {
469+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
470+ ImageWithOptionalPort : ImageWithOptionalPort {
471471 Image : Image {
472472 Build : BuildArgsOrString {
473473 BuildString : aws .String ("env overridden dockerfile" ),
@@ -484,8 +484,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
484484 Type : aws .String (BackendServiceType ),
485485 },
486486 BackendServiceConfig : BackendServiceConfig {
487- ImageConfig : ImageWithPortAndHealthcheck {
488- ImageWithPort : ImageWithPort {
487+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
488+ ImageWithOptionalPort : ImageWithOptionalPort {
489489 Image : Image {
490490 Location : aws .String ("original location" ),
491491 },
@@ -494,8 +494,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
494494 },
495495 Environments : map [string ]* BackendServiceConfig {
496496 "prod-iad" : {
497- ImageConfig : ImageWithPortAndHealthcheck {
498- ImageWithPort : ImageWithPort {
497+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
498+ ImageWithOptionalPort : ImageWithOptionalPort {
499499 Image : Image {
500500 Build : BuildArgsOrString {
501501 BuildString : aws .String ("env overridden dockerfile" ),
@@ -533,8 +533,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
533533
534534 wanted : & BackendService {
535535 BackendServiceConfig : BackendServiceConfig {
536- ImageConfig : ImageWithPortAndHealthcheck {
537- ImageWithPort : ImageWithPort {
536+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
537+ ImageWithOptionalPort : ImageWithOptionalPort {
538538 Port : aws .Uint16 (5000 ),
539539 },
540540 },
@@ -548,8 +548,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
548548
549549 wanted : & BackendService {
550550 BackendServiceConfig : BackendServiceConfig {
551- ImageConfig : ImageWithPortAndHealthcheck {
552- ImageWithPort : ImageWithPort {
551+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
552+ ImageWithOptionalPort : ImageWithOptionalPort {
553553 Port : aws .Uint16 (80 ),
554554 Image : Image {
555555 DockerLabels : map [string ]string {
@@ -598,8 +598,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
598598 Type : aws .String (BackendServiceType ),
599599 },
600600 BackendServiceConfig : BackendServiceConfig {
601- ImageConfig : ImageWithPortAndHealthcheck {
602- ImageWithPort : ImageWithPort {
601+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
602+ ImageWithOptionalPort : ImageWithOptionalPort {
603603 Image : Image {
604604 Location : aws .String ("env-override location" ),
605605 },
@@ -619,8 +619,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
619619 Type : aws .String (BackendServiceType ),
620620 },
621621 BackendServiceConfig : BackendServiceConfig {
622- ImageConfig : ImageWithPortAndHealthcheck {
623- ImageWithPort : ImageWithPort {
622+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
623+ ImageWithOptionalPort : ImageWithOptionalPort {
624624 Image : Image {
625625 Location : aws .String ("env-override location" ),
626626 },
@@ -639,8 +639,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
639639 Type : aws .String (BackendServiceType ),
640640 },
641641 BackendServiceConfig : BackendServiceConfig {
642- ImageConfig : ImageWithPortAndHealthcheck {
643- ImageWithPort : ImageWithPort {
642+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
643+ ImageWithOptionalPort : ImageWithOptionalPort {
644644 Image : Image {
645645 Build : BuildArgsOrString {
646646 BuildString : aws .String ("env overridden dockerfile" ),
@@ -661,8 +661,8 @@ func TestBackendSvc_ApplyEnv(t *testing.T) {
661661 Type : aws .String (BackendServiceType ),
662662 },
663663 BackendServiceConfig : BackendServiceConfig {
664- ImageConfig : ImageWithPortAndHealthcheck {
665- ImageWithPort : ImageWithPort {
664+ ImageConfig : ImageWithHealthcheckAndOptionalPort {
665+ ImageWithOptionalPort : ImageWithOptionalPort {
666666 Image : Image {
667667 Build : BuildArgsOrString {
668668 BuildString : aws .String ("env overridden dockerfile" ),
0 commit comments