use of org.finra.herd.model.dto.DataBridgeBaseManifestDto in project herd by FINRAOS.
the class DataBridgeManifestReaderTest method testReadJsonManifestNoFileType.
@Test
public void testReadJsonManifestNoFileType() throws Exception {
DataBridgeBaseManifestDto dataBridgeBaseManifestDto = getDataBridgeBaseManifestDto();
dataBridgeBaseManifestDto.setBusinessObjectFormatFileType(null);
testReadJsonManifest(dataBridgeBaseManifestDto, "Manifest business object format file type must be specified.");
}
use of org.finra.herd.model.dto.DataBridgeBaseManifestDto in project herd by FINRAOS.
the class UploaderWebClientTest method testGetBusinessObjectDataUploadCredential1.
@Test
public void testGetBusinessObjectDataUploadCredential1() throws Exception {
DataBridgeBaseManifestDto manifest = new DataBridgeBaseManifestDto();
manifest.setNamespace("test1");
manifest.setBusinessObjectDefinitionName("test2");
manifest.setBusinessObjectFormatUsage("test3");
manifest.setBusinessObjectFormatFileType("test4");
manifest.setBusinessObjectFormatVersion("test5");
manifest.setPartitionValue("test6");
manifest.setSubPartitionValues(Arrays.asList("test7", "test8"));
String storageName = "test8";
Integer businessObjectDataVersion = 1234;
Boolean createNewVersion = false;
uploaderWebClient.getRegServerAccessParamsDto().setUseSsl(false);
BusinessObjectDataUploadCredential businessObjectDataUploadCredential = uploaderWebClient.getBusinessObjectDataUploadCredential(manifest, storageName, businessObjectDataVersion, createNewVersion);
Assert.assertNotNull(businessObjectDataUploadCredential);
AwsCredential awsCredential = businessObjectDataUploadCredential.getAwsCredential();
Assert.assertNotNull(awsCredential);
Assert.assertEquals("http://testWebServiceHostname:1234/herd-app/rest/businessObjectData/upload/credential/namespaces/test1" + "/businessObjectDefinitionNames/test2/businessObjectFormatUsages/test3/businessObjectFormatFileTypes/test4/businessObjectFormatVersions/test5" + "/partitionValues/test6?storageName=test8&subPartitionValues=test7%7Ctest8&businessObjectDataVersion=1234&createNewVersion=false", awsCredential.getAwsAccessKey());
}
use of org.finra.herd.model.dto.DataBridgeBaseManifestDto in project herd by FINRAOS.
the class DataBridgeManifestReaderTest method testReadJsonManifestNoFormatUsage.
@Test
public void testReadJsonManifestNoFormatUsage() throws Exception {
DataBridgeBaseManifestDto dataBridgeBaseManifestDto = getDataBridgeBaseManifestDto();
dataBridgeBaseManifestDto.setBusinessObjectFormatUsage(null);
testReadJsonManifest(dataBridgeBaseManifestDto, "Manifest business object format usage must be specified.");
}
use of org.finra.herd.model.dto.DataBridgeBaseManifestDto in project herd by FINRAOS.
the class DataBridgeManifestReaderTest method getDataBridgeBaseManifestDto.
private DataBridgeBaseManifestDto getDataBridgeBaseManifestDto() {
DataBridgeBaseManifestDto dataBridgeBaseManifestDto = new DataBridgeBaseManifestDto();
dataBridgeBaseManifestDto.setNamespace("testNamespace");
dataBridgeBaseManifestDto.setBusinessObjectDefinitionName("testBusinessObjectDefinitionName");
dataBridgeBaseManifestDto.setBusinessObjectFormatUsage("testBusinessObjectFormatUsage");
dataBridgeBaseManifestDto.setBusinessObjectFormatFileType("testBusinessObjectFormatFileType");
dataBridgeBaseManifestDto.setBusinessObjectFormatVersion("testBusinessObjectFormatVersion");
dataBridgeBaseManifestDto.setPartitionKey("testPartitionKey");
dataBridgeBaseManifestDto.setPartitionValue("testPartitionValue");
dataBridgeBaseManifestDto.setSubPartitionValues(Arrays.asList("testSubPartitionValue1", "testSubPartitionValue2"));
return dataBridgeBaseManifestDto;
}
use of org.finra.herd.model.dto.DataBridgeBaseManifestDto in project herd by FINRAOS.
the class DataBridgeManifestReaderTest method testReadJsonManifestNoPartitionValue.
@Test
public void testReadJsonManifestNoPartitionValue() throws Exception {
DataBridgeBaseManifestDto dataBridgeBaseManifestDto = getDataBridgeBaseManifestDto();
dataBridgeBaseManifestDto.setPartitionValue(null);
testReadJsonManifest(dataBridgeBaseManifestDto, "Manifest business object data partition value must be specified.");
}
Aggregations