fixed security group test

This commit is contained in:
Adrian Cole 2011-07-29 03:47:49 -07:00
parent a26c568d7b
commit 841b9aae1b
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class AWSSecurityGroupClientLiveTest extends SecurityGroupClientLiveTest
assertEquals(oneResult.size(), 1); assertEquals(oneResult.size(), 1);
final SecurityGroup group = oneResult.iterator().next(); final SecurityGroup group = oneResult.iterator().next();
assertEquals(group.getName(), group1Name); assertEquals(group.getName(), group1Name);
IpPermissions group2CanHttpGroup1 = IpPermissions.permit(IpProtocol.TCP).fromPort(80) IpPermissions group2CanHttpGroup1 = IpPermissions.permit(IpProtocol.TCP).port(80)
.originatingFromSecurityGroupId(group1Id); .originatingFromSecurityGroupId(group1Id);
AWSSecurityGroupClient.class.cast(client).authorizeSecurityGroupIngressInRegion(null, group2Id, AWSSecurityGroupClient.class.cast(client).authorizeSecurityGroupIngressInRegion(null, group2Id,
group2CanHttpGroup1); group2CanHttpGroup1);