use of com.cloud.agent.api.routing.GroupAnswer in project cloudstack by apache.
the class VirtualRoutingResourceTest method testIpAssocVpcCommand.
@Test
public void testIpAssocVpcCommand() {
final IpAssocVpcCommand cmd = generateIpAssocVpcCommand();
_count = 0;
final Answer answer = _resource.executeRequest(cmd);
assertTrue(answer instanceof GroupAnswer);
assertEquals(2, ((GroupAnswer) answer).getResults().length);
assertTrue(answer.getResult());
}
use of com.cloud.agent.api.routing.GroupAnswer in project cloudstack by apache.
the class VirtualRoutingResourceTest method testSetPortForwardingRulesVpcCommand.
@Test
public void testSetPortForwardingRulesVpcCommand() {
final SetPortForwardingRulesVpcCommand cmd = generateSetPortForwardingRulesVpcCommand();
// Reset rule check count
_count = 0;
final Answer answer = _resource.executeRequest(cmd);
assertTrue(answer instanceof GroupAnswer);
assertEquals(((GroupAnswer) answer).getResults().length, 2);
assertTrue(answer.getResult());
}
Aggregations