use of org.apache.cloudstack.network.opendaylight.api.resources.NeutronNetworksNorthboundAction in project cloudstack by apache.
the class NeutronRestApiMock method neutronNetworksFail.
@Test(expected = NeutronRestApiException.class)
public void neutronNetworksFail() throws NeutronRestApiException {
URL url;
try {
url = new URL("http://localhost:8080");
NeutronNetworksNorthboundAction neutron = new NeutronNetworksNorthboundAction(url, "admin", "admin");
neutron.listAllNetworks();
} catch (MalformedURLException e) {
Assert.fail("Should not fail here.");
}
}
use of org.apache.cloudstack.network.opendaylight.api.resources.NeutronNetworksNorthboundAction in project cloudstack by apache.
the class NeutronRestApiMock method neutronHTTPGetMethod.
/*
* Test fails because there is no controller. It's used only to test that
* the HTTP methods are correct.
*/
@Test(expected = NeutronRestApiException.class)
public void neutronHTTPGetMethod() throws NeutronRestApiException {
URL url;
try {
url = new URL("http://localhost:8080");
NeutronNetworksNorthboundAction neutron = new NeutronNetworksNorthboundAction(url, "admin", "admin");
neutron.listAllNetworks();
} catch (MalformedURLException e) {
Assert.fail("Should not fail here.");
}
}
use of org.apache.cloudstack.network.opendaylight.api.resources.NeutronNetworksNorthboundAction in project cloudstack by apache.
the class NeutronRestApiMock method neutronFindNetworkByIdFail.
@Test(expected = NeutronRestApiException.class)
public void neutronFindNetworkByIdFail() throws NeutronRestApiException {
URL url;
try {
url = new URL("http://localhost:8080");
NeutronNetworksNorthboundAction neutron = new NeutronNetworksNorthboundAction(url, "admin", "admin");
neutron.findNetworkById("0AACEED5-A688-429A-92FC-E1C9E4EEEE98");
} catch (MalformedURLException e) {
Assert.fail("Should not fail here.");
}
}
Aggregations