nastra commented on code in PR #12556:
URL: https://github.com/apache/iceberg/pull/12556#discussion_r2000458253


##########
core/src/test/java/org/apache/iceberg/rest/TestHTTPRequest.java:
##########
@@ -107,6 +105,18 @@ public void malformedPath() {
             "Received a malformed path for a REST request: /v1/namespaces. 
Paths should not start with /");
   }
 
+  @Test
+  public void relativePathWithoutBaseUri() {
+    assertThatThrownBy(
+            () ->
+                ImmutableHTTPRequest.builder()
+                    .method(HTTPRequest.HTTPMethod.GET)
+                    .path("v1/namespaces") // wrong leading slash

Review Comment:
   does the comment apply here?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to