use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3HypervisorResourceTest method vmActionPreparation.
private Ovm3HypervisorResource vmActionPreparation() throws ConfigurationException {
Ovm3Configuration config = new Ovm3Configuration(configTest.getParams());
con = support.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 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;
}
use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3HypervisorSupportTest method GetHostStatsCommandFailTest.
@Test
public void GetHostStatsCommandFailTest() throws ConfigurationException {
con = prepare();
Ovm3Configuration config = new Ovm3Configuration(configTest.getParams());
GetHostStatsCommand cmd = new GetHostStatsCommand(config.getCsHostGuid(), config.getAgentName(), 1L);
con.setNull();
Answer ra = hypervisor.executeRequest(cmd);
results.basicBooleanTest(ra.getResult(), false);
}
use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration 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;
}
use of com.cloud.hypervisor.ovm3.resources.helpers.Ovm3Configuration in project cloudstack by apache.
the class Ovm3HypervisorSupportTest method ReportedVmStatesTest.
@Test
public void ReportedVmStatesTest() throws ConfigurationException, Ovm3ResourceException {
Ovm3Configuration config = new Ovm3Configuration(configTest.getParams());
con.setResult(xen.getMultipleVmsListXML());
Ovm3HypervisorSupport hypervisor = new Ovm3HypervisorSupport(con, config);
hypervisor.vmStateMapClear();
State vmState = hypervisor.getVmState(vmName);
results.basicStringTest(vmState.toString(), State.Running.toString());
hypervisor.setVmStateStarting(vmName);
results.basicStringTest(hypervisor.getVmState(vmName).toString(), State.Starting.toString());
hypervisor.setVmState(vmName, State.Running);
results.basicStringTest(hypervisor.getVmState(vmName).toString(), State.Running.toString());
hypervisor.revmoveVmState(vmName);
assertNull(hypervisor.getVmState(vmName));
}
Aggregations