fixing typo to get test passing

This commit is contained in:
Mike Arnold 2012-03-14 19:39:02 -05:00
parent d06f4a74cb
commit e6c91de7df
1 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import org.jclouds.openstack.nova.v1_1.parse.ParseSecurityGroupListTest;
import org.testng.annotations.Test;
import java.net.URI;
import java.util.logging.Logger;
import static org.testng.Assert.assertEquals;
@ -50,7 +51,8 @@ public class SecurityGroupClientExpectTest extends BaseNovaRestClientExpectTest
.put("X-Auth-Token", authToken).build()).build();
HttpResponse listSecurityGroupsResponse = HttpResponse.builder().statusCode(200)
.payload(payloadFromResource("/securitygroups_list.json")).build();
.payload(payloadFromResource("/securitygroup_list.json")).build();
NovaClient clientWhenSecurityGroupsExist = requestsSendResponses(
keystoneAuthWithAccessKeyAndSecretKey, responseWithKeystoneAccess,
@ -59,6 +61,9 @@ public class SecurityGroupClientExpectTest extends BaseNovaRestClientExpectTest
assertEquals(clientWhenSecurityGroupsExist.getConfiguredRegions(),
ImmutableSet.of("North"));
Logger.getAnonymousLogger().info("*********EXPECTED*****\n" + clientWhenSecurityGroupsExist.getSecurityGroupClientForRegion("North").listSecurityGroups().toString());
Logger.getAnonymousLogger().info("*********WAS*****\n" + new ParseSecurityGroupListTest().expected().toString());
assertEquals(clientWhenSecurityGroupsExist.getSecurityGroupClientForRegion("North")
.listSecurityGroups().toString(), new ParseSecurityGroupListTest().expected()
.toString());