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

For EC2, Introduce "allocationId" to IP Address and a new describeRouteTablesWithFilter method for searching RouteTables #202

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

qpointsystems
Copy link

Hello JClouds! My first pull request. Wanted to try and get this in as I saw activity picking up on the project recently.

The PublicIPInstanceIdPair was missing the "allocationId" attribute and I had a need for that for tracking purposes.

The RouteTable object lacked a method for searching "WithFilter" which I had a need for. Tried to follow the projects existing pattern for this sort of thing.

Cheers!

…t the describeAddresssesInRegion method of the IP Client will contain this information.
…ility similar to other EC2 objects that have a "describeXXXWithFilter" method along with their base "describeXXX" method.

Also modified the appropriate unit test with a test for this method
@gaul gaul requested a review from nacx April 1, 2024 23:37
Copy link
Member

@nacx nacx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
This looks good. It just needs a few unit tests.

@FormParams(keys = ACTION, values = "ReleaseAddress")
void releaseAddressInRegionByAllocationId(
@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
@FormParam("AllocationId") String allocationId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add the corresponding unit test to the ElasticIPAddressApiTest?

@Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
FluentIterable<RouteTable> describeRouteTablesWithFilter(
@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
@BinderParam(BindFiltersToIndexedFormParams.class) Multimap<String, String> filter);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add the corresponding unit tests to the RouteTableApiMockTest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants