Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ECSClientFactory to create new ECS clients #4061

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

danehlim
Copy link
Contributor

@danehlim danehlim commented Dec 18, 2023

Summary

Small "nice to have" change to add an ECSClientFactory interface (and implementing struct ecsClientFactory) whose purpose is to create/initialize new ECS clients.

This can help with testing in other code packages for any future tests we may want to add since it allows us to easily test and define what to expect during other packages' creation of ECS client/how the ECS client came to be in the first place.

Implementation details

  • Add ECSClientFactory interface to ecs-agent module and use it to create/initialize ECS client in agent module
  • Generate mocks for ECSClientFactory interface

Testing

New tests cover the changes: yes

Description for the changelog

Add ECSClientFactory to create new ECS clients

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

Licensing

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

@danehlim danehlim marked this pull request as ready for review December 18, 2023 20:49
@danehlim danehlim requested a review from a team as a code owner December 18, 2023 20:49
timj-hh
timj-hh previously approved these changes Dec 20, 2023
@danehlim danehlim merged commit b07f146 into aws:dev Dec 21, 2023
38 checks passed
@mye956 mye956 mentioned this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants