mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(elb): return TargetGroupNotFound for missing target groups (#1161)
This commit is contained in:
1 parent
30a598f080
commit
289e1e9630
2 files changed
+33
-1
No files matched your search
@@ -246,6 +246,35 @@ class ElbV2IntegrationTest {
|
||||
equalTo("deregistration_delay.timeout_seconds"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(14)
|
||||
void describeTargetGroupsByMissingNameThrows() {
|
||||
given()
|
||||
.formParam("Action", "DescribeTargetGroups")
|
||||
.formParam("Names.member.1", "target-group-that-does-not-exist")
|
||||
.header("Authorization", AUTH)
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(400)
|
||||
.body("ErrorResponse.Error.Code", equalTo("TargetGroupNotFound"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(15)
|
||||
void describeTargetGroupsByMissingArnThrows() {
|
||||
given()
|
||||
.formParam("Action", "DescribeTargetGroups")
|
||||
.formParam("TargetGroupArns.member.1",
|
||||
"arn:aws:elasticloadbalancing:us-east-1:000000000000:targetgroup/missing/0123456789abcdef")
|
||||
.header("Authorization", AUTH)
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(400)
|
||||
.body("ErrorResponse.Error.Code", equalTo("TargetGroupNotFound"));
|
||||
}
|
||||
|
||||
// ── Targets ───────────────────────────────────────────────────────────────
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user