use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3StorageProcessorTest 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()));
return con;
}
use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3VmSupportTest method GetVmStatsCommandTest.
@Test
public void GetVmStatsCommandTest() throws ConfigurationException {
hypervisor = support.prepare(configTest.getParams());
Ovm3Configuration configuration = new Ovm3Configuration(configTest.getParams());
List<String> vms = new ArrayList<String>();
vms.add(xen.getVmName());
GetVmStatsCommand cmd = new GetVmStatsCommand(vms, configuration.getCsHostGuid(), hypervisor.getName());
Answer ra = hypervisor.executeRequest(cmd);
results.basicBooleanTest(ra.getResult());
cmd = new GetVmStatsCommand(vms, configuration.getCsHostGuid(), hypervisor.getName());
ra = hypervisor.executeRequest(cmd);
results.basicBooleanTest(ra.getResult());
}
use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3VmSupportTest method MigrateCommandTest.
@Test
public void MigrateCommandTest() throws ConfigurationException, Ovm3ResourceException {
Ovm3Configuration configuration = new Ovm3Configuration(configTest.getParams());
hypervisor = support.prepare(configTest.getParams());
MigrateCommand cmd = new MigrateCommand(xen.getVmName(), configuration.getAgentIp(), false, hyperTest.createVm(xen.getVmName()), false);
Answer ra = hypervisor.executeRequest(cmd);
results.basicBooleanTest(ra.getResult());
}
use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3SupportTest method prepare.
public Ovm3HypervisorResource prepare(Map<String, Object> params) throws ConfigurationException {
Ovm3Configuration config = new Ovm3Configuration(params);
con = prepConnectionResults();
hypervisor.setConnection(con);
results.basicBooleanTest(hypervisor.configure(config.getAgentName(), configTest.getParams()));
return hypervisor;
}
use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3HypervisorSupportTest method GetHostStatsCommandTest.
@Test
public void GetHostStatsCommandTest() throws ConfigurationException {
con = prepare();
Ovm3Configuration config = new Ovm3Configuration(configTest.getParams());
GetHostStatsCommand cmd = new GetHostStatsCommand(config.getCsHostGuid(), config.getAgentName(), 1L);
con.setResult(this.dom0stats);
Answer ra = hypervisor.executeRequest(cmd);
results.basicBooleanTest(ra.getResult());
}
Aggregations