use of com.cloud.network.PhysicalNetworkSetupInfo in project cloudstack by apache.
the class Ovm3HypervisorNetworkTest method CheckNetworkCommandPublicFailTest.
@Test
public void CheckNetworkCommandPublicFailTest() throws ConfigurationException {
hypervisor = support.prepare(configTest.getParams());
List<PhysicalNetworkSetupInfo> setups = new ArrayList<PhysicalNetworkSetupInfo>();
PhysicalNetworkSetupInfo networkInfo = new PhysicalNetworkSetupInfo();
networkInfo.setPublicNetworkName(network.getInterface() + "." + 3000);
setups.add(networkInfo);
CheckNetworkCommand cmd = new CheckNetworkCommand(setups);
Answer ra = hypervisor.executeRequest(cmd);
results.basicBooleanTest(ra.getResult(), false);
}
use of com.cloud.network.PhysicalNetworkSetupInfo in project cloudstack by apache.
the class Ovm3HypervisorNetworkTest method CheckNetworkCommandTest.
@Test
public void CheckNetworkCommandTest() throws ConfigurationException {
hypervisor = support.prepare(configTest.getParams());
List<PhysicalNetworkSetupInfo> setups = new ArrayList<PhysicalNetworkSetupInfo>();
PhysicalNetworkSetupInfo networkInfo = new PhysicalNetworkSetupInfo();
setups.add(networkInfo);
CheckNetworkCommand cmd = new CheckNetworkCommand(setups);
Answer ra = hypervisor.executeRequest(cmd);
results.basicBooleanTest(ra.getResult());
}
use of com.cloud.network.PhysicalNetworkSetupInfo in project cloudstack by apache.
the class XenServer610WrapperTest method testCheckNetworkCommandFailure.
@Test
public void testCheckNetworkCommandFailure() {
final XenServer610Resource xenServer610Resource = new XenServer610Resource();
final PhysicalNetworkSetupInfo info = new PhysicalNetworkSetupInfo();
final List<PhysicalNetworkSetupInfo> setupInfos = new ArrayList<PhysicalNetworkSetupInfo>();
setupInfos.add(info);
final CheckNetworkCommand checkNet = new CheckNetworkCommand(setupInfos);
final Answer answer = xenServer610Resource.executeRequest(checkNet);
assertTrue(answer.getResult());
}
use of com.cloud.network.PhysicalNetworkSetupInfo in project cloudstack by apache.
the class NotAValidCommand method testCheckNetworkCommandSuccess.
@Test
public void testCheckNetworkCommandSuccess() {
final List<PhysicalNetworkSetupInfo> setupInfos = new ArrayList<PhysicalNetworkSetupInfo>();
final CheckNetworkCommand checkNet = new CheckNetworkCommand(setupInfos);
final CitrixRequestWrapper wrapper = CitrixRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(checkNet, citrixResourceBase);
assertTrue(answer.getResult());
}
use of com.cloud.network.PhysicalNetworkSetupInfo in project cloudstack by apache.
the class NotAValidCommand method testCheckNetworkCommandFailure.
@Test
public void testCheckNetworkCommandFailure() {
final PhysicalNetworkSetupInfo info = new PhysicalNetworkSetupInfo();
final List<PhysicalNetworkSetupInfo> setupInfos = new ArrayList<PhysicalNetworkSetupInfo>();
setupInfos.add(info);
final CheckNetworkCommand checkNet = new CheckNetworkCommand(setupInfos);
final CitrixRequestWrapper wrapper = CitrixRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(checkNet, citrixResourceBase);
assertFalse(answer.getResult());
}
Aggregations