use of com.cloud.hypervisor.ovm3.objects.ConnectionTest in project cloudstack by apache.
the class Ovm3SupportTest method prepConnectionResults.
public ConnectionTest prepConnectionResults() {
ConnectionTest con = new ConnectionTest();
con.setIp(con.getHostName());
return configureResult(con);
}
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);
}
use of com.cloud.hypervisor.ovm3.objects.ConnectionTest in project cloudstack by apache.
the class Ovm3HypervisorResourceTest method getCurrentStatusExceptionTest.
@Test
public void getCurrentStatusExceptionTest() throws ConfigurationException {
con = new ConnectionTest();
hypervisor.setConnection(con);
assertNull(hypervisor.getCurrentStatus(1L));
}
Aggregations