archive_checksums = checksums.ArchiveChecksums.from_file_desc(checksum_hdl)
except (FileNotFoundError, PackageError) as e:
self._log.warning("Could not open package checksum file. Not validating checksums.")
- return validated_file_checksums
+ return self.validated_file_checksums
for pkg_file in package.files:
if pkg_file == checksum_file:
proxy = mock.MagicMock()
url = "http://boson.eng.riftio.com/common/unittests/plantuml.jar"
- url_downloader = downloader.PackageFileDownloader(url, "1", "/", "VNFD", proxy)
+ url_downloader = downloader.PackageFileDownloader(url, "1", "/", "VNFD", "SCRIPTS", "VNF_CONFIG", proxy)
download_id = yield from self.job_handler.register_downloader(url_downloader)
assert download_id is not None
# Here, we are assuming that there is no HTTP server at 10.1.2.3
url = "http://10.1.2.3/common/unittests/plantuml.jar"
- url_downloader = downloader.PackageFileDownloader(url, "1", "/", "VNFD", proxy)
+ url_downloader = downloader.PackageFileDownloader(url, "1", "/", "VNFD", "SCRIPTS", "VNF_CONFIG", proxy)
download_id = yield from self.job_handler.register_downloader(url_downloader)
assert download_id is not None
proxy = mock.MagicMock()
url = "http://boson.eng.riftio.com/common/unittests/Fedora-x86_64-20-20131211.1-sda-ping.qcow2"
- url_downloader = downloader.PackageFileDownloader(url, "1", "/", "VNFD", proxy)
+ url_downloader = downloader.PackageFileDownloader(url, "1", "/", "VNFD", "SCRIPTS", "VNF_CONFIG", proxy)
download_id = yield from self.job_handler.register_downloader(url_downloader)
assert download_id is not None