aws / amazon-ecs-agent

Amazon Elastic Container Service Agent
http://aws.amazon.com/ecs/
Apache License 2.0
2.07k stars 608 forks source link

Refactor fault injection unit tests to reduce duplicated code #4352

Closed tshan2001 closed 1 week ago

tshan2001 commented 1 week ago

Summary

Refactoring fault injection unit tests such that duplicated code are moved into shared method.

Testing

All existing unit tests passed

New tests cover the changes:

Description for the changelog

Refactoring FIS Unit tests such that duplicated code are moved into shared method.

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

**Does this PR include the addition of new environment variables in the README?**

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.