terraform-aws-ecs-service icon indicating copy to clipboard operation
terraform-aws-ecs-service copied to clipboard

[Unit Test] EC2 Tests need some more setup before we can fully test this module

Open evanjtravis opened this issue 5 years ago • 1 comments

Several configuration flavors of ecs-service require the use of EC2 instances, the creation of which is not currently supported by the test engine. This causes the tests to fail.

The Dockerfile for testing this module has a modified ENTRYPOINT to exclude any tests that require the creation of an EC2 instance. This change can be reverted once we have a working solution to this issue.

Some proposed solutions:

  1. Create an EC2 box that doesn't do anything but support temporary ecs-service instances.
  2. Modify the test engine to spin up a temporary EC2 instance associated with the ECS cluster, and then destroy the EC2 at the conclusion of tests.

evanjtravis avatar Nov 12 '19 16:11 evanjtravis

For whatever reason, the modified ENTRYPOINT is causing behave to skip ALL tests, so for right now the kludgy solution is to comment out the offending tests. This issue will be resolved once we un-comment the tests and they can run successfully.

evanjtravis avatar Nov 12 '19 17:11 evanjtravis