RI M22 - Core Services - Testing Dataset Collection no uploading the file
Hello,
I'm trying to upload a file to complete the task Testing Dataset Collection - Dataset API but I'm getting the response not found.. I need some help to figure out what is going on... Here is what I`ve done:
- Collection: RI_OSDU_Smoke_Tests.postman_collection.json
- Environment: OSDU_R3_RI_Pre-ship.postman_environment.json
1. Create LegalTag
POST https://{{LEGAL_HOST}}/legaltags
BODY CURL VERSION
curl --location 'https://osdu.bm22.gcp.gnrg-osdu.projects.epam.com/api/legal/v1/legaltags' \
--header 'Content-Type: application/json' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer <Token>' \
--data '{
"name": "osdu-DatasetAPI-Legal-Tag-Test9872069",
"description": "Legal Tag added for OpenVDS",
"properties": {
"contractId": "123456",
"countryOfOrigin": [
"US",
"CA"
],
"dataType": "Third Party Data",
"exportClassification": "EAR99",
"originator": "Auto Test",
"personalData": "No Personal Data",
"securityClassification": "Private",
"expirationDate": "2025-12-25"
}
}'
BODY
{
"name": "{{datasetTagName}}",
"description": "Legal Tag added for OpenVDS",
"properties": {
"contractId": "123456",
"countryOfOrigin": [
"US",
"CA"
],
"dataType": "Third Party Data",
"exportClassification": "EAR99",
"originator": "Auto Test",
"personalData": "No Personal Data",
"securityClassification": "Private",
"expirationDate": "2025-12-25"
}
}
RESPONSE
{
"name": "osdu-DatasetAPI-Legal-Tag-Test9872069",
"description": "Legal Tag added for OpenVDS",
"properties": {
"countryOfOrigin": [
"US",
"CA"
],
"contractId": "123456",
"expirationDate": "2025-12-25",
"originator": "Auto Test",
"dataType": "Third Party Data",
"securityClassification": "Private",
"personalData": "No Personal Data",
"exportClassification": "EAR99"
}
}
2. Get Storage Instructions
POST {{DATASET_HOST}}/storageInstructions?kindSubType=dataset--FileCollection.Generic
BODY CURL VERSION
curl --location --request POST 'https://osdu.bm22.gcp.gnrg-osdu.projects.epam.com/api/dataset/v1/storageInstructions?kindSubType=dataset--FileCollection.Generic' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer <Token>'
RESPONSE
{
"providerKey": "ANTHOS",
"storageLocation": {
"url": "https://s3.bm22.gcp.gnrg-osdu.projects.epam.com/refi-osdu-staging-area/",
"createdBy": "osdu-tester@service.local",
"fileCollectionSource": "4de9dc5d7f3a4d4896f401dfb0447934",
"signingOptions": {
"x-amz-date": "20240125T143252Z",
"x-amz-signature": "a0a39358cba1c663a1a6afabe6ed3c7b181bb28088b5a765e5bce7455ef06f39",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-credential": "fileUser/20240125/us-east-1/s3/aws4_request",
"policy": "eyJleHBpcmF0aW9uIjoiMjAyNC0wMS0yNVQxNTozMjo1Mi45ODlaIiwiY29uZGl0aW9ucyI6W1siZXEiLCIkYnVja2V0IiwicmVmaS1vc2R1LXN0YWdpbmctYXJlYSJdLFsic3RhcnRzLXdpdGgiLCIka2V5IiwiNGRlOWRjNWQ3ZjNhNGQ0ODk2ZjQwMWRmYjA0NDc5MzQvIl0sWyJlcSIsIiR4LWFtei1hbGdvcml0aG0iLCJBV1M0LUhNQUMtU0hBMjU2Il0sWyJlcSIsIiR4LWFtei1jcmVkZW50aWFsIiwiZmlsZVVzZXIvMjAyNDAxMjUvdXMtZWFzdC0xL3MzL2F3czRfcmVxdWVzdCJdLFsiZXEiLCIkeC1hbXotZGF0ZSIsIjIwMjQwMTI1VDE0MzI1MloiXV19"
}
}
}
3a. Upload file 1 to S3
BODY CURL VERSION
curl --location 'https://storage.googleapis.com/upload/storage/v1/b/https://s3.bm22.gcp.gnrg-osdu.projects.epam.com/refi-osdu-staging-area//o?uploadType=media&name=4de9dc5d7f3a4d4896f401dfb0447934%2Ffile1' \
--header 'Content-Type: text/csv' \
--data '@/C:/Users/juliana.fernandes/Documents/OSDU/Preshipping/R3M22/Plataform Validation/Test_02/wellbore.csv'
BODY - binary
wellbore.csv
RESPONSE
Not Found
Regards,