use of com.cloud.hypervisor.ovm3.objects.ConnectionTest in project cloudstack by apache.
the class Ovm3VirtualRoutingResourceTest method prepare.
private ConnectionTest prepare() throws ConfigurationException {
Ovm3Configuration config = new Ovm3Configuration(configTest.getParams());
con = support.prepConnectionResults();
hypervisor.setConnection(con);
results.basicBooleanTest(hypervisor.configure(config.getAgentName(), configTest.getParams()));
virtualrouting.setConnection(con);
return con;
}
use of com.cloud.hypervisor.ovm3.objects.ConnectionTest in project cloudstack by apache.
the class Ovm3VirtualRoutingResourceTest method executeInVRFailTest.
@Test
public void executeInVRFailTest() {
ConnectionTest con = new ConnectionTest();
virtualrouting.setConnection(con);
ExecutionResult result = virtualrouting.executeInVR(domrIp, cmd, args);
results.basicBooleanTest(result.isSuccess(), false);
}
use of com.cloud.hypervisor.ovm3.objects.ConnectionTest in project cloudstack by apache.
the class Ovm3HypervisorSupportTest method prepare.
private ConnectionTest prepare() throws ConfigurationException {
Ovm3Configuration config = new Ovm3Configuration(configTest.getParams());
con = support.prepConnectionResults();
pool = new Ovm3StoragePool(con, config);
storage = new Ovm3StorageProcessor(con, config, pool);
hypervisor.setConnection(con);
results.basicBooleanTest(hypervisor.configure(config.getAgentName(), configTest.getParams()));
virtualrouting.setConnection(con);
return con;
}
use of com.cloud.hypervisor.ovm3.objects.ConnectionTest in project cloudstack by apache.
the class Ovm3VirtualRoutingResourceTest method createFileInVRFailTest.
@Test
public void createFileInVRFailTest() {
ConnectionTest con = new ConnectionTest();
virtualrouting.setConnection(con);
ExecutionResult result = virtualrouting.createFileInVR(domrIp, "/tmp", "test", "1 2 3");
results.basicBooleanTest(result.isSuccess(), false);
}
use of com.cloud.hypervisor.ovm3.objects.ConnectionTest in project cloudstack by apache.
the class Ovm3HypervisorSupportTest method fillHostinfoTest.
@Test
public void fillHostinfoTest() throws ConfigurationException {
Ovm3Configuration config = new Ovm3Configuration(configTest.getParams());
ConnectionTest con = new ConnectionTest();
con.setIp(config.getAgentIp());
Ovm3HypervisorSupport hypervisor = new Ovm3HypervisorSupport(con, config);
LinuxTest linuxTest = new LinuxTest();
NetworkTest networkTest = new NetworkTest();
StartupRoutingCommand srCmd = new StartupRoutingCommand();
con.setResult(results.simpleResponseWrapWrapper(linuxTest.getDiscoverHw()));
con.addResult(results.simpleResponseWrapWrapper(linuxTest.getDiscoverserver()));
con.addResult(results.simpleResponseWrapWrapper(networkTest.getDiscoverNetwork()));
hypervisor.fillHostInfo(srCmd);
}
Aggregations