Search in sources :

Example 1 with LinuxTest

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);
}
Also used : LinuxTest(com.cloud.hypervisor.ovm3.objects.LinuxTest) ConnectionTest(com.cloud.hypervisor.ovm3.objects.ConnectionTest) StartupRoutingCommand(com.cloud.agent.api.StartupRoutingCommand) NetworkTest(com.cloud.hypervisor.ovm3.objects.NetworkTest) Test(org.junit.Test) ConnectionTest(com.cloud.hypervisor.ovm3.objects.ConnectionTest) LinuxTest(com.cloud.hypervisor.ovm3.objects.LinuxTest) NetworkTest(com.cloud.hypervisor.ovm3.objects.NetworkTest) XenTest(com.cloud.hypervisor.ovm3.objects.XenTest) Ovm3SupportTest(com.cloud.hypervisor.ovm3.support.Ovm3SupportTest) XmlTestResultTest(com.cloud.hypervisor.ovm3.objects.XmlTestResultTest)

Aggregations

StartupRoutingCommand (com.cloud.agent.api.StartupRoutingCommand)1 ConnectionTest (com.cloud.hypervisor.ovm3.objects.ConnectionTest)1 LinuxTest (com.cloud.hypervisor.ovm3.objects.LinuxTest)1 NetworkTest (com.cloud.hypervisor.ovm3.objects.NetworkTest)1 XenTest (com.cloud.hypervisor.ovm3.objects.XenTest)1 XmlTestResultTest (com.cloud.hypervisor.ovm3.objects.XmlTestResultTest)1 Ovm3SupportTest (com.cloud.hypervisor.ovm3.support.Ovm3SupportTest)1 Test (org.junit.Test)1