@Test public void testGoodDeleteDBSecurityGroup() throws Exception { logger.info("Creating good DBSecGroup"); final CreateDBSecurityGroupRequest request = new CreateDBSecurityGroupRequest(); request.withDBSecurityGroupDescription("TestSecGroup"); request.withDBSecurityGroupName(name1); getRdsClient().createDBSecurityGroup(request); logger.info("Deleting DBSecGroup with name = " + name1); final DeleteDBSecurityGroupRequest delRequest = new DeleteDBSecurityGroupRequest(); delRequest.withDBSecurityGroupName(name1); getRdsClient().deleteDBSecurityGroup(delRequest); }
@Test(expected = AmazonServiceException.class) public void testDeleteDBSecurityGroupInvalidParameters() throws Exception { final DeleteDBSecurityGroupRequest request = new DeleteDBSecurityGroupRequest(); request.withDBSecurityGroupName("No Group"); getRdsClient().deleteDBSecurityGroup(request); }