Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.apache.hugegraph.api.traverser.PersonalRankApiTest;
import org.apache.hugegraph.api.traverser.RingsRaysApiTest;
import org.apache.hugegraph.api.traverser.SameNeighborsApiTest;
import org.apache.hugegraph.api.traverser.SameNeighborsBatchApiTest;
import org.apache.hugegraph.api.traverser.ShortestPathApiTest;
import org.apache.hugegraph.api.traverser.SingleSourceShortestPathApiTest;
import org.apache.hugegraph.api.traverser.TemplatePathsApiTest;
Expand Down Expand Up @@ -74,6 +75,7 @@
CountApiTest.class,
RingsRaysApiTest.class,
SameNeighborsApiTest.class,
SameNeighborsBatchApiTest.class,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

High: Enabled test suite calls an unsupported server endpoint

hugegraph-client/src/test/java/org/apache/hugegraph/api/ApiTestSuite.java:78

Evidence

  • SameNeighborsBatchAPI.type() returns sameneighborsbatch, so adding SameNeighborsBatchApiTest.class makes ApiTestSuite post to /traversers/sameneighborsbatch; the CI workflow runs ApiTestSuite against server commit 8c1ee71, where only SameNeighborsAPI at /traversers/sameneighbors exists.

Impact

  • mvn test -Dtest=ApiTestSuite will fail in CI once this class is included.

Requested fix

  • Align the client/test with the server route and response contract, or keep this test excluded until the CI server revision actually provides the batch endpoint.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low: Enabled limit coverage reuses a stale request

hugegraph-client/src/test/java/org/apache/hugegraph/api/ApiTestSuite.java:78

Evidence

  • In SameNeighborsBatchApiTest.testSameNeighborsWithLimit(), the later limit(2L) and limit(1L) blocks create builders but post the original request built before those options were applied.

Impact

  • Even after the endpoint issue is fixed, the suite can pass without exercising batch limit behavior.

Requested fix

  • Rebuild and assign the request after setting each block’s options, then update the limit(1L) assertions to expect limited results.

JaccardSimilarityApiTest.class,
ShortestPathApiTest.class,
AllShortestPathsApiTest.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
import org.apache.hugegraph.testutil.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.Ignore;

import com.google.common.collect.ImmutableList;

@Ignore("Blocked by server: /traversers/sameneighborsbatch not implemented, see <https://github.com/apache/incubator-hugegraph/issues/2798>")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long

public class SameNeighborsBatchApiTest extends TraverserApiTest {

@BeforeClass
Expand Down
Loading