mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(ec2): validate CreateSecurityGroup required parameters (#3888)
This commit is contained in:
1 parent
d348763345
commit
37ac2505e8
3 files changed
+44
-3
No files matched your search
@@ -1489,6 +1489,36 @@ class Ec2IntegrationTest {
|
||||
.extract().path("CreateSecurityGroupResponse.groupId");
|
||||
}
|
||||
|
||||
@Test
|
||||
void createSecurityGroupMissingGroupName() {
|
||||
given()
|
||||
.formParam("Action", "CreateSecurityGroup")
|
||||
.formParam("GroupDescription", "Test security group")
|
||||
.formParam("VpcId", vpcId)
|
||||
.header("Authorization", AUTH_HEADER)
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(400)
|
||||
.body(containsString("MissingParameter"))
|
||||
.body(containsString("GroupName"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void createSecurityGroupMissingDescription() {
|
||||
given()
|
||||
.formParam("Action", "CreateSecurityGroup")
|
||||
.formParam("GroupName", "test-security-group")
|
||||
.formParam("VpcId", vpcId)
|
||||
.header("Authorization", AUTH_HEADER)
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(400)
|
||||
.body(containsString("MissingParameter"))
|
||||
.body(containsString("GroupDescription"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(31)
|
||||
void authorizeSecurityGroupIngress() {
|
||||
|
||||
Reference in new issue
Block a user