Bug Type (问题类型)
None
Before submit
Environment (环境信息)
- Server Version: v1.5.0
- Toolchain Version: v1.5.0
Expected & Actual behavior (期望与实际表现)
Background
Currently, SameNeighborsBatchApiTest is not included in the Maven test suite, so its failures are not visible in CI. All test cases in this class fail locally with HTTP 404 because the server does not implement /traversers/sameneighborsbatch.
Here's the exact report from the test.
class jakarta.ws.rs.NotFoundException: HTTP 404 Not Found
at org.apache.hugegraph.exception.ServerException.fromResponse(ServerException.java:45)
at org.apache.hugegraph.client.RestClient.checkStatus(RestClient.java:194)
at org.apache.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:317)
at org.apache.hugegraph.client.RestClient.post(RestClient.java:146)
at org.apache.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:253)
at org.apache.hugegraph.client.RestClient.post(RestClient.java:111)
at org.apache.hugegraph.api.traverser.SameNeighborsBatchAPI.post(SameNeighborsBatchAPI.java:38)
at org.apache.hugegraph.api.traverser.SameNeighborsBatchApiTest.testSameNeighborsBatchBatch(SameNeighborsBatchApiTest.java:83)
Proposal
Add SameNeighborsBatchApiTest to the test suite.
Temporarily annotate the class or failing methods with 'Ignore', referencing the missing server API and linking to the server-side issue. Related to server Issue#2798
apache/hugegraph#2798
Once the server implements the required API, remove the 'Ignore' annotation and enable the tests.