Search in sources :

Example 1 with ConnectionTest

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

Example 2 with ConnectionTest

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

Example 3 with ConnectionTest

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

Example 4 with ConnectionTest

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

Example 5 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)

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