-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-ecs-patterns): Integration testing of aws-ecs-patterns contains an invalid integration test #28383
Description
Describe the bug
The integration testing of the aws-ecs-patterns has an invalid docker being used,
-
When executed the container state always fails with the following message -

-
Looking at the docker and python file it never creates a webserver so the test on this location(
) ideally should always fail as it asks the container to either respond with a localhost response which is not possible as there is no web server building in the docker image or give exit 1 which is exit with failure.Line 18 in 7c62d68
command: ['CMD-SHELL', 'curl -f http://localhost/ || exit 1'], -
It is possible there are other issues with the integration testing but I have found these while working on the bug - aws-ecs-patterns (QueueProcessingFargateService): non-editable Scaling Policy causes race conditions & dropped tasks #20706
Expected Behavior
All integration tests should be perfectly aligned and work as expected.
Current Behavior
Integration tests go into infinite loop until cloud formation tasks fail.
Reproduction Steps
Create a new integration step using the QueueProcessingFargateService, using the same Docker and the index.py with no webserver and the docker should be using the CMD command.
Possible Solution
- Separate Docker file for separate fargate integration tests.
- Queue processing is different from application load balancer.
Additional Information/Context
No response
CDK CLI Version
NA
Framework Version
2.115
Node.js Version
NA
OS
NA
Language
TypeScript
Language Version
No response
Other information
No response