Search in sources :

Example 1 with CloudStorageConfiguration

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();
}
Also used : MetricsExecutionInterceptor(com.hedera.mirror.importer.config.MetricsExecutionInterceptor) SignatureFileReaderV2(com.hedera.mirror.importer.reader.signature.SignatureFileReaderV2) CompositeSignatureFileReader(com.hedera.mirror.importer.reader.signature.CompositeSignatureFileReader) SignatureFileReaderV5(com.hedera.mirror.importer.reader.signature.SignatureFileReaderV5) CloudStorageConfiguration(com.hedera.mirror.importer.config.CloudStorageConfiguration)

Aggregations

CloudStorageConfiguration (com.hedera.mirror.importer.config.CloudStorageConfiguration)1 MetricsExecutionInterceptor (com.hedera.mirror.importer.config.MetricsExecutionInterceptor)1 CompositeSignatureFileReader (com.hedera.mirror.importer.reader.signature.CompositeSignatureFileReader)1 SignatureFileReaderV2 (com.hedera.mirror.importer.reader.signature.SignatureFileReaderV2)1 SignatureFileReaderV5 (com.hedera.mirror.importer.reader.signature.SignatureFileReaderV5)1