M19 - GC - Storage Create Records Error
I'm trying to run Storage (Create-Update-Retrieve) for GC and I'm facing a problem and I'm not sure how to solve. I'm using the collection provided for the pre-shipping GC_OSDU_Smoke_Tests.postman_collection.json
When I ran 10. Storage - Create records success scenario I'm getting this response:
{
"code": 400,
"reason": "Validation error.",
"message": "{\"errors\":[\"Not a valid record kind. Found: m19:osdu::0.2.1\",\"Not a valid record id. Found: m19::999884337602\"]}"
}
So I checked the Pre-request Script:
//pm.environment.set("recordID", "common:welldb:" + _.random(1, 9999999));
var rand = _.random(999111111111, 999999999999);
var dataPartition = pm.environment.get("data-partition-id");
var record = pm.environment.get("record_id");
postman.setEnvironmentVariable("NewWellUWI", rand);
postman.setEnvironmentVariable("NewWellName", "CertificationWell" + rand);
postman.setEnvironmentVariable("recordID", dataPartition + ":" + record + ":" + rand);
cp = pm.environment.get("cloud_platform");
if (cp == "Azure") {
pm.environment.set("New_OwnerDataGroup", "data.default.owner");
pm.environment.set("New_ViewerDataGroup", "data.default.viewer");
}
else{
pm.environment.set("New_OwnerDataGroup", "data.default.owners");
pm.environment.set("New_ViewerDataGroup", "data.default.viewers");
}
I noticed that in this line:
postman.setEnvironmentVariable("recordID", dataPartition + ":" + record + ":" + rand);
I have this variable "recordID" and at the environment file the value for this is: m19::999876217829 I erased the value but the error still persist... how I can solve this? I faced this problem on M18 and I just erased the Pre-request Script and passed, but I think it's not the best solution...