test(elasticache): stop the method name claiming the bound is AWS's

Two review points, both about claims rather than behaviour. The only
non-comment change in the diff is the rename.

aPortOutsideTheRangeAwsAcceptsIsStillRefused was the last place in the tree
still asserting that 1150 to 65535 is what AWS accepts, after the previous
commit removed that claim from the docs, the service javadoc and the unit
test. It is now aPortOutsideTheAcceptedRangeIsStillRefused, and its javadoc
says the bound is the one RdsService.reserveProxyPort applies to the same
argument, with nothing here establishing ElastiCache's real limit.

It survived a round that corrected the identical claim in three other places
because a method name does not present itself as prose. It is read far more
often than the body under it and re-read far less, which is true of a display
name, a bead title and a commit subject too.

Order(2) carried a one-line javadoc about the original bug, so a reader
landing there sees no reason it is not redundant against Order(6). It now says
what it catches that Order(6) cannot: comparing the two REPORTED ports is what
rejects a build reporting one port for both caches, it does so before anything
connects, and it still runs on a machine where Order(6) skips for want of
Docker. The non-subsumption was already stated in the class javadoc and in
Order(6)'s, which is not where someone doubting Order(2) is standing.

ElastiCache surface: 215 tests, 0 failures, 0 skipped. The renamed test is
present in the surefire report under its new name.

Refs: floci-j55a
This commit is contained in:
Allen Sanborn committed 2026-09-29 15:29:15 -05:00
1 parent 5e2880cd1f
commit 87d663e4e8
1 file changed
+15 -3
@@ -104,7 +104,15 @@ class ElastiCachePortSharingIntegrationTest {
.extract().xmlPath().getInt(CREATED_PORT);
}
/** The bug: AWS creates this group, and Floci answered InvalidParameterValue. */
/**
* The bug: AWS creates this group, and Floci answered InvalidParameterValue.
*
* <p>Not redundant against {@code Order(6)}, which is the reading this assertion invites.
* Comparing the two REPORTED ports is what rejects a build that reports one port for both
* caches, and it does so before anything connects, so it survives on a runner where
* {@code Order(6)} is skipped for want of Docker. {@code Order(6)} catches what this cannot,
* namely two distinct reported ports that do not reach the caches they name.
*/
@Test
@Order(2)
void secondGroupOnTheSamePortIsCreatedRatherThanRefused() {
@@ -131,10 +139,14 @@ class ElastiCachePortSharingIntegrationTest {
describeMember(SECOND_GROUP + "-001").extract().xmlPath().getInt(MEMBER_NODE_PORT));
}
/** AWS's own rule, and the only rejection left. */
/**
* The one range check left. The bound is the one {@code RdsService.reserveProxyPort} applies
* to the same argument; nothing here establishes ElastiCache's real limit on AWS, so the name
* says "accepted" rather than claiming the range is AWS's.
*/
@Test
@Order(5)
void aPortOutsideTheRangeAwsAcceptsIsStillRefused() {
void aPortOutsideTheAcceptedRangeIsStillRefused() {
given()
.formParam("Action", "CreateReplicationGroup")
.formParam("ReplicationGroupId", "it-ec-share-bad-port")