use of org.onap.so.openstack.beans.NetworkInfo in project so by onap.
the class MsoNeutronUtilsTest method queryNetworkTest_404.
@Test
public void queryNetworkTest_404() throws Exception {
NetworkInfo networkInfo = msoNeutronUtils.queryNetwork("43173f6a-d699-414b-888f-ab243dda6dfe", "tenantId", "MTN13");
Assert.assertNull(networkInfo);
}
use of org.onap.so.openstack.beans.NetworkInfo in project so by onap.
the class MsoNeutronUtilsTest method queryNetworkTest.
@Test
public void queryNetworkTest() throws Exception {
StubOpenStack.mockOpenStackGetNeutronNetwork(wireMockServer, "GetNeutronNetwork.json", "43173f6a-d699-414b-888f-ab243dda6dfe");
NetworkInfo networkInfo = msoNeutronUtils.queryNetwork("43173f6a-d699-414b-888f-ab243dda6dfe", "tenantId", "MTN13");
Assert.assertEquals("net1", networkInfo.getName());
}
Aggregations