fix(autoscaling): validate monitoring booleans (#3219)

This commit is contained in:
Franklin G. Mendoza authored and GitHub committed 2026-09-07 20:36:48 -05:00
1 parent 9e9b0b6e91
commit 84a7ce67e4
2 files changed
+19 -2

No files matched your search

@@ -134,6 +134,23 @@ class AutoScalingIntegrationTest {
@Test
@Order(44)
void launchConfigurationRejectsInvalidInstanceMonitoringBoolean() {
given()
.formParam("Action", "CreateLaunchConfiguration")
.formParam("LaunchConfigurationName", "my-lc-invalid-monitoring")
.formParam("ImageId", "ami-12345678")
.formParam("InstanceType", "t3.micro")
.formParam("InstanceMonitoring.Enabled", "not-a-boolean")
.header("Authorization", AUTH)
.when()
.post("/")
.then()
.statusCode(400)
.body(containsString("ValidationError"));
}
@Test
@Order(45)
void launchConfigurationRejectsAMappingWithoutADeviceName() {
given()
.formParam("Action", "CreateLaunchConfiguration")