laserninja commented on PR #10652:
URL: https://github.com/apache/gravitino/pull/10652#issuecomment-4173206935

   1. **Removed `@DefaultValue("")`** from `@PathParam("prefix")` — the regex 
already handles the absent segment, consistent with other endpoints like 
`IcebergTableOperations`.
   
   2. **Used distinct values in `testConfigWithPrefixAndWarehouse`** — prefix 
is set to `IcebergRestTestUtil.PREFIX` (for catalog resolution) while warehouse 
is set to `"other_warehouse"` (a different string). The assertion now verifies 
that `response.defaults().get("prefix")` equals the warehouse value, which only 
passes if the warehouse branch wins for the `"prefix"` default key while the 
prefix path param wins for catalog resolution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to