Search in sources :

Example 16 with DownloaderInputManifestDto

use of org.finra.herd.model.dto.DownloaderInputManifestDto in project herd by FINRAOS.

the class AbstractDownloaderTest method getTestDownloaderInputManifestDto.

/**
 * Returns a downloader input downloaderInputManifestDto instance initialized per hard coded test values.
 *
 * @return the resulting DownloaderInputManifestDto instance
 */
protected DownloaderInputManifestDto getTestDownloaderInputManifestDto() {
    DownloaderInputManifestDto manifest = new DownloaderInputManifestDto();
    manifest.setNamespace(TEST_NAMESPACE);
    manifest.setBusinessObjectDefinitionName(TEST_BUSINESS_OBJECT_DEFINITION);
    manifest.setBusinessObjectFormatUsage(TEST_BUSINESS_OBJECT_FORMAT_USAGE);
    manifest.setBusinessObjectFormatFileType(TEST_BUSINESS_OBJECT_FORMAT_FILE_TYPE);
    manifest.setBusinessObjectFormatVersion(TEST_BUSINESS_OBJECT_FORMAT_VERSION.toString());
    manifest.setPartitionKey(TEST_BUSINESS_OBJECT_FORMAT_PARTITION_KEY);
    manifest.setPartitionValue(TEST_PARTITION_VALUE);
    manifest.setSubPartitionValues(TEST_SUB_PARTITION_VALUES);
    manifest.setBusinessObjectDataVersion(TEST_DATA_VERSION_V0.toString());
    return manifest;
}
Also used : DownloaderInputManifestDto(org.finra.herd.model.dto.DownloaderInputManifestDto)

Aggregations

DownloaderInputManifestDto (org.finra.herd.model.dto.DownloaderInputManifestDto)16 Test (org.junit.Test)14 IOException (java.io.IOException)8 BusinessObjectData (org.finra.herd.model.api.xml.BusinessObjectData)8 AwsCredential (org.finra.herd.model.api.xml.AwsCredential)7 S3KeyPrefixInformation (org.finra.herd.model.api.xml.S3KeyPrefixInformation)7 Storage (org.finra.herd.model.api.xml.Storage)7 StorageUnit (org.finra.herd.model.api.xml.StorageUnit)7 StorageUnitDownloadCredential (org.finra.herd.model.api.xml.StorageUnitDownloadCredential)7 RegServerAccessParamsDto (org.finra.herd.model.dto.RegServerAccessParamsDto)6 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)5 HttpClientOperations (org.finra.herd.dao.HttpClientOperations)5 File (java.io.File)4 CloseableHttpResponse (org.apache.http.client.methods.CloseableHttpResponse)4 StringEntity (org.apache.http.entity.StringEntity)4 BasicStatusLine (org.apache.http.message.BasicStatusLine)4 Command (org.finra.herd.core.Command)4 BusinessObjectDataKey (org.finra.herd.model.api.xml.BusinessObjectDataKey)4 UploaderInputManifestDto (org.finra.herd.model.dto.UploaderInputManifestDto)4 Objects (com.google.common.base.Objects)3