-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate and add REMS object to submission (merge commit)
Merge branch 'feature/rems-dac-policy' into 'main' * Change wording to internal_rems for metadata objects * Fix rems.http template logic slightly * Validate and add REMS object to submission Closes #532 and #649 See merge request https://gitlab.ci.csc.fi/sds-dev/sd-submit/metadata-submitter/-/merge_requests/932 Reviewed-by: Joonatan Mäkinen <[email protected]> Approved-by: Joonatan Mäkinen <[email protected]> Co-authored-by: lhang <[email protected]> Co-authored-by: Joonatan Mäkinen <[email protected]> Merged by Joonatan Mäkinen <[email protected]>
- Loading branch information
Showing
14 changed files
with
223 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,19 @@ | |
|
||
|
||
@backend_url = http://localhost:5430 | ||
# @auth_url = http://localhost:8000 | ||
@rems_url = https://test-rems.sd.csc.fi/api | ||
# @rems_url = http://localhost:8003/api | ||
@rems_user_id = sd-submit-robot | ||
@rems_api_key = sd-submit-test-key | ||
@auth_url = http://localhost:8000 | ||
# @rems_url = https://rems-dev.2.rahtiapp.fi/api | ||
@rems_url = http://localhost:8003/api | ||
@rems_url_2 = http://localhost:8003/ | ||
|
||
@rems_user_id = owner | ||
@rems_api_key = 42 | ||
|
||
@auth_email = [email protected] | ||
|
||
@resid = {{resid_req.response.body.id}} | ||
@wfid = {{dac_req.response.body.$[0].id}} | ||
@orgid = {{dac_req.response.body.$[0].organization.organization/id}} | ||
@wfid = {{dac_req.response.body.id}} | ||
@orgid = {{dac_req.response.body.organization.organization/id}} | ||
@application_id = {{catalogue_req.response.body.id}} | ||
|
||
### Mock authentication | ||
|
@@ -30,7 +32,6 @@ GET {{backend_url}}/v1/rems | |
?language=fi | ||
|
||
### Get workflows | ||
# @name dac_req | ||
GET {{rems_url}}/workflows | ||
?disabled=false | ||
&archived=false | ||
|
@@ -53,7 +54,6 @@ x-rems-user-id: {{rems_user_id}} | |
x-rems-api-key: {{rems_api_key}} | ||
|
||
### Get license | ||
# @name dac_req | ||
GET {{rems_url}}/licenses/1 | ||
?disabled=false | ||
&archived=false | ||
|
@@ -70,7 +70,7 @@ Content-Type: application/json | |
{ | ||
"resid": "test-doi-here", | ||
"organization": { | ||
"organization/id": "another_org" | ||
"organization/id": "CSC" | ||
}, | ||
"licenses": [ | ||
1 | ||
|
@@ -105,9 +105,8 @@ Content-Type: application/json | |
"archived": false | ||
} | ||
|
||
|
||
### Get application - only with mock api | ||
GET {{rems_url}}/application | ||
?items=2 | ||
?items=1 | ||
x-rems-user-id: {{rems_user_id}} | ||
x-rems-api-key: {{rems_api_key}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.