fixed a broken RepeatTest in Groovy (my bad). Also, added a Gremlin-Python test to demonstrate
things are okay on TinkerPops side regarding a bug mentioned. CTR.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/1a95df05
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1a95df05
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1a95df05
Branch: refs/heads/TINKERPOP-1692
Commit: 1a95df05cc4cd587ffe6ff2a30d578089c490a19
Parents: 5ab53ac
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Tue Aug 29 07:52:06 2017 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Tue Aug 29 07:52:13 2017 -0600
----------------------------------------------------------------------
.../process/traversal/step/branch/GroovyRepeatTest.groovy | 2 +-
.../jython/tests/driver/test_driver_remote_connection.py | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1a95df05/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/branch/GroovyRepeatTest.groovy
----------------------------------------------------------------------
diff --git a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/branch/GroovyRepeatTest.groovy
b/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/branch/GroovyRepeatTest.groovy
index ad73c33..3c366dc 100644
--- a/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/branch/GroovyRepeatTest.groovy
+++ b/gremlin-groovy-test/src/main/groovy/org/apache/tinkerpop/gremlin/process/traversal/step/branch/GroovyRepeatTest.groovy
@@ -100,7 +100,7 @@ public abstract class GroovyRepeatTest {
@Override
public Traversal<Vertex, Path> get_g_V_hasXname_markoX_repeatXoutE_inV_simplePathX_untilXhasXname_rippleXX_path_byXnameX_byXlabelX()
{
- new ScriptTraversal<>(g, "gremlin-groovy", "g.V.has('name', 'marko').repeat(outE.inV.simplePath).until(has('name',
'ripple')).path.by('name').by(label)")
+ new ScriptTraversal<>(g, "gremlin-groovy", "g.V.has('name', 'marko').repeat(__.outE.inV.simplePath).until(has('name',
'ripple')).path.by('name').by(label)")
}
}
}
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1a95df05/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
index 9bbccfb..0f8c06b 100644
--- a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
+++ b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
@@ -66,6 +66,15 @@ class TestDriverRemoteConnection(object):
assert 'peter' in results
# # todo: need a traversal metrics deserializer
g.V().out().profile().next()
+ # #
+ results = g.V().has('name','peter').as_('a').out('created').as_('b').select('a','b').by(__.valueMap()).toList()
+ assert 1 == len(results)
+ assert 'peter' == results[0]['a']['name'][0]
+ assert 35 == results[0]['a']['age'][0]
+ assert 'lop' == results[0]['b']['name'][0]
+ assert 'java' == results[0]['b']['lang'][0]
+ assert 2 == len(results[0]['a'])
+ assert 2 == len(results[0]['b'])
def test_strategies(self, remote_connection):
statics.load_statics(globals())
|