use of com.cloud.legacymodel.communication.command.PingTestCommand in project cosmic by MissionCriticalCloud.
the class LibvirtComputingResourceTest method testPingOnlyOneIpCommand.
@Test
public void testPingOnlyOneIpCommand() {
final PingTestCommand command = new PingTestCommand("127.0.0.1", null);
final LibvirtRequestWrapper wrapper = LibvirtRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(command, this.libvirtComputingResource);
assertFalse(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.PingTestCommand in project cosmic by MissionCriticalCloud.
the class NotAValidCommand method testPingTestCommandRouterPvtIps.
@Test
public void testPingTestCommandRouterPvtIps() {
final PingTestCommand pingTestCommand = new PingTestCommand("127.0.0.1", "127.0.0.1");
final CitrixRequestWrapper wrapper = CitrixRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(pingTestCommand, this.citrixResourceBase);
verify(this.citrixResourceBase, times(1)).getConnection();
assertFalse(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.PingTestCommand in project cosmic by MissionCriticalCloud.
the class NotAValidCommand method testPingTestCommandHostIp.
@Test
public void testPingTestCommandHostIp() {
final PingTestCommand pingTestCommand = new PingTestCommand("127.0.0.1");
final CitrixRequestWrapper wrapper = CitrixRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(pingTestCommand, this.citrixResourceBase);
verify(this.citrixResourceBase, times(1)).getConnection();
assertFalse(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.PingTestCommand in project cosmic by MissionCriticalCloud.
the class LibvirtComputingResourceTest method testPingTestHostIpCommand.
@Test
public void testPingTestHostIpCommand() {
final PingTestCommand command = new PingTestCommand("127.0.0.1");
final LibvirtRequestWrapper wrapper = LibvirtRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(command, this.libvirtComputingResource);
assertFalse(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.PingTestCommand in project cosmic by MissionCriticalCloud.
the class LibvirtComputingResourceTest method testPingTestPvtIpCommand.
@Test
public void testPingTestPvtIpCommand() {
final PingTestCommand command = new PingTestCommand("127.0.0.1", "127.0.0.1");
final LibvirtRequestWrapper wrapper = LibvirtRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(command, this.libvirtComputingResource);
assertFalse(answer.getResult());
}
Aggregations