Commit 6776501e authored by Matt Wise's avatar Matt Wise
Browse files

Add provider key to contracts

parent f3330bd1
......@@ -26,9 +26,12 @@ public class DatasetRetrievalDeliveryItem {
Map<String, Object> retrievalProperties = new HashMap<>();
public DatasetRetrievalDeliveryItem(String datasetRegistryId, Map<String, Object> retrievalProperties) {
String providerKey;
public DatasetRetrievalDeliveryItem(String datasetRegistryId, Map<String, Object> retrievalProperties, String providerKey) {
this.datasetRegistryId = datasetRegistryId;
this.retrievalProperties = retrievalProperties;
this.providerKey = providerKey;
}
}
......@@ -22,7 +22,10 @@ import lombok.Data;
public class GetDatasetStorageInstructionsResponse {
Map<String, Object> storageLocation;
public GetDatasetStorageInstructionsResponse(Map<String, Object> storageLocation) {
String providerKey;
public GetDatasetStorageInstructionsResponse(Map<String, Object> storageLocation, String providerKey) {
this.storageLocation = storageLocation;
this.providerKey = providerKey;
}
}
......@@ -70,7 +70,7 @@ public class DatasetDmsApiTest {
String resourceType = "srn:type:file";
GetDatasetStorageInstructionsResponse expectedResponse = new GetDatasetStorageInstructionsResponse(new HashMap<String, Object>());
GetDatasetStorageInstructionsResponse expectedResponse = new GetDatasetStorageInstructionsResponse(new HashMap<String, Object>(), "DUMMY");
when(this.datasetDmsService.getStorageInstructions(resourceType)).thenReturn(expectedResponse);
ResponseEntity response = this.datasetDmsApi.getStorageInstructions(resourceType);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment