This is an automated email from the ASF dual-hosted git repository.
xiazcy pushed a commit to branch graphbinary-remove-serializers
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/graphbinary-remove-serializers
by this push:
new 551c206de9 fix tests
551c206de9 is described below
commit 551c206de992846d9d4f051dd1625b60fe2bfc77
Author: Yang Xia <[email protected]>
AuthorDate: Thu Sep 12 09:25:48 2024 -0700
fix tests
---
.../src/main/python/tests/process/test_gremlin_lang.py | 2 +-
.../gremlin/server/GremlinServerAuthzIntegrateTest.java | 14 --------------
2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/gremlin-python/src/main/python/tests/process/test_gremlin_lang.py
b/gremlin-python/src/main/python/tests/process/test_gremlin_lang.py
index 0457bfe00c..ef0fbc2ca6 100644
--- a/gremlin-python/src/main/python/tests/process/test_gremlin_lang.py
+++ b/gremlin-python/src/main/python/tests/process/test_gremlin_lang.py
@@ -144,7 +144,7 @@ class TestGremlinLang(object):
tests.append([g.V().values('runways').mean(),
"g.V().values('runways').mean()"])
# 36
- tests.append([g.withSack(0).V('3',
'5').sack(Operator.sum_).by('runways').sack(),
+ tests.append([g.with_sack(0).V('3',
'5').sack(Operator.sum_).by('runways').sack(),
"g.withSack(0).V('3','5').sack(Operator.sum).by('runways').sack()"])
# 37
tests.append([g.V('3').values('runways').store('x').V('4').values('runways').store('x').by(__.constant(1)).V(
diff --git
a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerAuthzIntegrateTest.java
b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerAuthzIntegrateTest.java
index 2d6be24f7b..02f4ffc861 100644
---
a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerAuthzIntegrateTest.java
+++
b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerAuthzIntegrateTest.java
@@ -35,7 +35,6 @@ import
org.apache.tinkerpop.gremlin.server.auth.SimpleAuthenticator;
import org.apache.tinkerpop.gremlin.server.authz.AllowListAuthorizer;
import
org.apache.tinkerpop.gremlin.server.handler.HttpBasicAuthenticationHandler;
import org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONTokens;
-import org.apache.tinkerpop.gremlin.util.function.Lambda;
import org.apache.tinkerpop.shaded.jackson.databind.JsonNode;
import org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper;
import org.junit.AfterClass;
@@ -122,19 +121,6 @@ public class GremlinServerAuthzIntegrateTest extends
AbstractGremlinServerIntegr
}
}
- @Test
- public void shouldAuthorizeGremlinLangRequestWithLambda() {
- final Cluster cluster = TestClientFactory.build().auth(basic("marko",
"rainbow-dash")).create();
- final GraphTraversalSource g =
AnonymousTraversalSource.traversal().with(
- DriverRemoteConnection.using(cluster, "gclassic"));
-
- try {
- assertEquals(6, (long) g.V().count().next());
- assertEquals(6, (long)
g.V().map(Lambda.function("it.get().value('name')")).count().next());
- } finally {
- cluster.close();
- }
- }
@Test
public void shouldAuthorizeStringRequest() throws Exception {