use of com.hedera.mirror.importer.config.CloudStorageConfiguration in project hedera-mirror-node by hashgraph.
the class AbstractDownloaderTest method beforeEach.
protected void beforeEach() throws Exception {
initProperties();
commonDownloaderProperties.setAllowAnonymousAccess(true);
s3AsyncClient = new CloudStorageConfiguration(commonDownloaderProperties, new MetricsExecutionInterceptor(meterRegistry)).s3CloudStorageClient();
signatureFileReader = new CompositeSignatureFileReader(new SignatureFileReaderV2(), new SignatureFileReaderV5());
nodeSignatureVerifier = new NodeSignatureVerifier(addressBookService, downloaderProperties.getCommon(), meterRegistry);
downloader = getDownloader();
streamType = downloaderProperties.getStreamType();
fileCopier = FileCopier.create(TestUtils.getResource("data").toPath(), s3Path).from(getTestDataDir()).to(commonDownloaderProperties.getBucketName(), streamType.getPath());
startS3Proxy();
doReturn(addressBook).when(addressBookService).getCurrent();
}
Aggregations