Wellbore domain services - Cognite team CI-CD E2E tests
Hi @FrancoisVinyes & @lyriarte,
a bit of background... We are trying to run Cognite team's tests for Wellbore from the location given at the end. We would like to point out a scenario where the tests in "default" folder (no.4 to 7) folder are failing or not as expected when using an invalid token or an invalid data-partition-id. The tests would still return a 200 OK for an invalid/expired token or an invalid data-partition-id.
End points in question: /os-wellbore-ddms/ddms/v2/about, /os-wellbore-ddms/ddms/v2/version and /os-wellbore-ddms/ddms/v2/status
When analyzing the reason, it is found in app/auth/auth.py that "TODO REAL entitlement call is needed here, for now basic decode without verify". If we understand, as of now we are only decoding the auth token and Entitlement service call needs to be implemented? Will this be part of future code merges?
Also trying to find out if there is any validation happening to data-partition-id? request you to point if any.
Request you to let us know, so that we can move forward with the tests. Thanks for your support & co-operation.
File: Wellbore DDMS CI-CD v1.2.postman_collection.json (can be imported in Postman) Link:https://community.opengroup.org/osdu/platform/testing/-/blob/master/Postman%20Collection/28_CICD_Setup_WellboreDDMSAPI/Wellbore%20DDMS%20CI-CD%20v1.2.postman_collection.json
FYI.. @shamazum, @anujgupta