Search in sources :

Example 6 with ConnectionTest

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);
}
Also used : ConnectionTest(com.cloud.hypervisor.ovm3.objects.ConnectionTest)

Example 7 with ConnectionTest

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);
}
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)

Example 8 with ConnectionTest

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));
}
Also used : ConnectionTest(com.cloud.hypervisor.ovm3.objects.ConnectionTest) ConnectionTest(com.cloud.hypervisor.ovm3.objects.ConnectionTest) Test(org.junit.Test) CloudStackPluginTest(com.cloud.hypervisor.ovm3.objects.CloudStackPluginTest) 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) Ovm3ConfigurationTest(com.cloud.hypervisor.ovm3.resources.helpers.Ovm3ConfigurationTest)

Aggregations

ConnectionTest (com.cloud.hypervisor.ovm3.objects.ConnectionTest)5 NetworkTest (com.cloud.hypervisor.ovm3.objects.NetworkTest)4 XenTest (com.cloud.hypervisor.ovm3.objects.XenTest)4 XmlTestResultTest (com.cloud.hypervisor.ovm3.objects.XmlTestResultTest)4 Ovm3SupportTest (com.cloud.hypervisor.ovm3.support.Ovm3SupportTest)4 Test (org.junit.Test)4 CloudStackPluginTest (com.cloud.hypervisor.ovm3.objects.CloudStackPluginTest)3 LinuxTest (com.cloud.hypervisor.ovm3.objects.LinuxTest)3 Ovm3ConfigurationTest (com.cloud.hypervisor.ovm3.resources.helpers.Ovm3ConfigurationTest)3 Ovm3Configuration (com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration)2 ExecutionResult (com.cloud.utils.ExecutionResult)2 StartupRoutingCommand (com.cloud.agent.api.StartupRoutingCommand)1 Ovm3StorageProcessor (com.cloud.hypervisor.ovm3.resources.Ovm3StorageProcessor)1