In GC R3 M19 pre-ship environment - Not able to retrieve the added partition test policy
The partition Test policy was added using the following command
curl --location --request PUT 'https://preship.gcp.gnrg-osdu.projects.epam.com/api/policy/v1/policies/osdu/partition/m19/gcp_test_partition_policy.rego'
--header 'data-partition-id: m19'
--header 'Authorization: Bearer ya29.a0AbVbY6Mn0...4DY0tsw0167'
--form 'file=@"D:/OSDU/R3M19/Pre-ship/postman collections/PolicyFiles/gcp_test_partition_policy.rego"'
Response to the above request 200 OK
{ "policy_id": "gcp_test_partition_policy.rego", "data_partition": "m19", "opa_payload": "package osdu.partition["m19"].gcp_test_partition_policy\r\n\r\nallow := true", "status_code": 202, "status": true, "message": "Policy gcp_test_partition_policy.rego added to bundle server" }
Try to retrieve the add partition test policy
curl --location 'https://preship.gcp.gnrg-osdu.projects.epam.com/api/policy/v1/policies/osdu/partition/m19/gcp_test_partition_policy.rego'
--header 'data-partition-id: m19'
--header 'Authorization: Bearer ya29.a0AbVbY6Mn0_YCNhIQyGx9J9P3-zQOwsCfK5zHMUXkAEW1pRslIPmue0hbBI0kU3ZFsJzWJP2MF1lKmXnkRjY6IGNtM4cv9nkbExVczyzX24FZorzwxpijrZcHTdzSuBHLpEyr-ybhwvikwGmvSaT94KTk3xKevpKfaCgYKAVsSARASFQFWKvPlRrpaSxubpiIBelu4DY0tsw0167'
Response from the above request 404 Not Found
{ "detail": "Unexpected result from OPA storage_not_found_error: policy id "osdu/partition/m19/gcp_test_partition_policy.rego"" }
When same workflow is performed in Azure environment, it is working fine.