AZURE M12: Well Delivery - errors when creating schemas and entities
500 error being thrown when trying to create well entity.
I encountered two errors when trying to validate wellbore ddms for AZURE using the following postman files:
Postman collection used: https://community.opengroup.org/osdu/platform/testing/-/blob/master/Postman%20Collection/44_CICD_Well_Delivery_DMS/WellDelivery%20DDMS%20CI-CD%20v3.1.postman_collection.json
Postman environment used: https://community.opengroup.org/osdu/platform/pre-shipping/-/blob/main/R3-M12/Azure-M12/Environment/Verify_Preshipping_New_TeamA-E.postman_environment.json
The following variable needs to be added/modified to the environment for the collection to work:
welldeliveryURL:https://osdu-ship.msft-osdu-test.org/api/well-delivery
SCHEMA_HOST:osdu-ship.msft-osdu-test.org
The first error I encountered was a 400 error when trying to create a schema (for instance Schemas/Create_schema_well:
{
"error": {
"code": 400,
"message": "Update/Create failed because schema id is present in another tenant",
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "Update/Create failed because schema id is present in another tenant"
}
]
}
}
The second error I encountered was a 500 error when trying to create a well entity (UC1/entity_create well):
{
"timestamp": "2022-07-04T19:38:32.670+0000",
"status": 500,
"error": "Internal Server Error",
"message": "Request processing failed; nested exception is AppException(error=AppError(code=0, reason=Access denied, message=The user is not authorized to perform this action, errors=null, debuggingInfo=null, originalException=EntitlementsException()), originalException=EntitlementsException())",
"path": "/api/well-delivery/storage/v1/well"
}
I have attached a document that has the full details of the failed requests:Azure_M12_Well_Delivery_Test.docx