mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(autoscaling): validate monitoring booleans (#3219)
This commit is contained in:
1 parent
9e9b0b6e91
commit
84a7ce67e4
2 files changed
+19
-2
No files matched your search
+17
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user