apache / apache/hugegraph-toolchain

[Bug] SameNeighborsBatchApiTest dosenot exist in test suite

Open
#672 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
121
Forks
125
Avg merge
10d 10h
Merged PRs (30d)
3

Description

### Bug Type (问题类型)

None

### Before submit

- [x] I had searched in the [issues](https://github.com/apache/hugegraph-toolchain/issues) and found no similar issues.

### 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
https://github.com/apache/incubator-hugegraph/issues/2798
Once the server implements the required API, remove the 'Ignore' annotation and enable the tests.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with SameNeighborsBatchApiTest and the Maven test suite to determine how this class is currently excluded. Check server issue #2798 and the /traversers/sameneighborsbatch 404 context before adding the test class with an Ignore annotation referencing the missing API. Done means the suite includes the test while its known failures are skipped until the server API exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.