Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Dataset
Commits
6776501e
Commit
6776501e
authored
Jan 14, 2021
by
Matt Wise
Browse files
Add provider key to contracts
parent
f3330bd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
dataset-core/src/main/java/org/opengroup/osdu/dataset/model/response/DatasetRetrievalDeliveryItem.java
View file @
6776501e
...
...
@@ -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
;
}
}
dataset-core/src/main/java/org/opengroup/osdu/dataset/model/response/GetDatasetStorageInstructionsResponse.java
View file @
6776501e
...
...
@@ -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
;
}
}
dataset-core/src/test/java/org/opengroup/osdu/dataset/api/DatasetDmsApiTest.java
View file @
6776501e
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment