use of com.cloud.hypervisor.ovm3.objects.LinuxTest 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