Implementing download service CSAR endpoint
[integration/csit.git] / plans / so / integration-etsi-testing / so-simulators / sdc-simulator / src / main / java / org / onap / so / sdcsimulator / providers / AssetProviderImpl.java
index 28800b5..8996d24 100644 (file)
@@ -191,7 +191,7 @@ public class AssetProviderImpl implements AssetProvider {
     }
 
     private Optional<InputStream> getInputStream(final String csarId, final AssetType assetType) throws IOException {
-        final Path filePath = Paths.get(resourceLocation, csarId + DOT_CSAR);
+        final Path filePath = Paths.get(resourceLocation, assetType.toString(), csarId + DOT_CSAR);
         if (Files.exists(filePath)) {
             LOGGER.info("Found csar on file system using path: {}", filePath);
             return Optional.of(Files.newInputStream(filePath));