Skip to content
Snippets Groups Projects

Added support for crc32c checksum algorithm to productfetcher

Merged Sam Kagan requested to merge add-crc32c-to-productfetcher into 2.8.4-DEVELOPMENT
7 files
+ 143
21
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -32,7 +32,6 @@ from .interfaces import FetcherFactory, FetchPlan, FileFetcher
from .locations import NgasFile, OracleXml
from .validators import Crc32Validator, SizeValidator, XmlWellFormedValidator
# pylint: disable=E0401, E0402, E1136, R0913
@@ -77,7 +76,7 @@ class ConfiguredFetcherFactory(FetcherFactory):
return (
RetryableFileFetcher(self.file_fetcher(file))
.and_validate_with(SizeValidator(file.size))
.and_validate_with(Crc32Validator(file.checksum))
.and_validate_with(Crc32Validator(file.checksum, file.checksum_type))
)
def fetch_oracle_xml(self, file: OracleXml) -> FileFetcher:
Loading