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

Move appnet client interface to ecs-agent #3827

Merged
merged 19 commits into from
Jul 31, 2023

Conversation

RichaGangwar
Copy link
Contributor

Summary

This PR moves Appnet client interface to ecs-agent. The PR also makes minor changes in order to make the library shareable.

Implementation details

  1. Move AppNetClient interface from agent/api/interface.go to ecs-agent/api/appnet/client.go
  2. Update the mocks for both the files mentioned above.
  3. Update all the usages of AppNetClient to consume from new location.
  4. In appnet client library, change the method Client() to more apt CreateClient() method name.
  5. Change the client to more apt AppNetAgentClient.

Testing

Tested using existing test cases as no new functionality is introduced.
New tests cover the changes: no

Description for the changelog

Move appnet client interface to ecs-agent

Licensing

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

@RichaGangwar RichaGangwar marked this pull request as ready for review July 25, 2023 00:52
@RichaGangwar RichaGangwar requested a review from a team as a code owner July 25, 2023 00:52
@RichaGangwar RichaGangwar changed the title [WIP] Move appnet client interface to ecs-agent Move appnet client interface to ecs-agent Jul 25, 2023
@RichaGangwar RichaGangwar requested a review from Realmonia July 25, 2023 01:01
@RichaGangwar RichaGangwar requested review from yinyic and danehlim July 28, 2023 17:14
ecs-agent/api/appnet/client.go Show resolved Hide resolved
@RichaGangwar RichaGangwar merged commit b62165e into aws:dev Jul 31, 2023
chienhanlin pushed a commit that referenced this pull request Aug 8, 2023
* Move appnet client lib to ecs-agent

* Removed updated version on dependencies in go.mod for agent and ecs-agent

* appnet client: changes for shared lib

* appnet client: shared lib

* appnet client: shared lib

* appnet client: new mocks

* appnet client: new mocks

* appnet client: add generate_mocks to agent vendor

* appnet client: remove arguments passed to createclient

* appnet client: updated api mock

* appnet client: Fix name on service_connect_linux

* Remove ECSTaskProtectionSDK from interface.go

* Update mocks

* AppnetClient: Updated interface to remove appnet

* Updated api mocks

* Fix go imports

* AppnetClient: Update files in vendor dir

* AppnetClient: Update import for mock appnet client

* Test fix

---------

Co-authored-by: Richa Gangwar <ricgang@amazon.com>
@chienhanlin chienhanlin mentioned this pull request Aug 9, 2023
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.

5 participants