assertFalse("Did not expect to find the version", vnfRepository.findVersion(versions, "3434").isPresent());
}
- @Test
- public void configurationLoadedFromFile() {
- final String prefix = "http://10.57.30.20:1111/";
- assertEquals(prefix + "download-vnf-31", new VnfPackageRepositoryImpl.FileConfiguration().getDownloadUri());
- assertEquals(prefix + "get-vnf-13", new VnfPackageRepositoryImpl.FileConfiguration().getGetUri());
- }
-
@Test
public void listVnfsReturnsInternalServerErrorWhenRemoteClientError() {
stubFor(get(GET_PATH).willReturn(aResponse().withStatus(403).withBody("Forbidden")));