Merge branch 'dependabot/nuget/gremlin-dotnet/3.6-dev/xunit.runner.visualstudio-2.8.0' into 3.6-dev
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
index c6cf798..37fb0ab 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs
@@ -22,6 +22,7 @@
#endregion
using System;
+using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Gremlin.Net.Structure;
@@ -1516,6 +1517,15 @@
}
/// <summary>
+ /// Adds the property step to this <see cref="GraphTraversal{SType, EType}" />.
+ /// </summary>
+ public GraphTraversal<S, E> Property(IDictionary value)
+ {
+ Bytecode.AddStep("property", value);
+ return Wrap<S, E>(this);
+ }
+
+ /// <summary>
/// Adds the propertyMap step to this <see cref="GraphTraversal{SType, EType}" />.
/// </summary>
public GraphTraversal<S, IDictionary<string, E2>> PropertyMap<E2> (params string[] propertyKeys)
diff --git a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs
index 0d4a56a..816d4c1 100644
--- a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Process/Traversal/Translator/GroovyTranslatorTests.cs
@@ -420,7 +420,11 @@
{ _g.V().Has("runways", P.Inside(3, 5)), "g.V().has('runways', P.inside([3, 5]))" },
{ _g.V("44").OutE().ElementMap<object>(), "g.V('44').outE().elementMap()" },
{ _g.V("44").ValueMap<object, object>().By(__.Unfold<object>()), "g.V('44').valueMap().by(__.unfold())" },
-
+ {
+ _g.V().Property(new Dictionary<string, object> { { "name", "test" }, { "age", 30 } }),
+ "g.V().property(['name': 'test', 'age': 30])"
+ },
+
// TODO: Support WithOptions
{
_g.V("44").ValueMap<object, object>().With(WithOptions.Tokens, WithOptions.Labels),
@@ -454,7 +458,8 @@
"g.withStrategies(new ReadOnlyStrategy(), new SubgraphStrategy(vertices: __.has('region', 'US-TX'), edges: __.hasLabel('route'))).V().count()"
},
{
- _g.WithStrategies(new ReadOnlyStrategy(), new SubgraphStrategy(vertices: __.Has("region", "US-TX"), checkAdjacentVertices: true)).V()
+ _g.WithStrategies(new ReadOnlyStrategy(),
+ new SubgraphStrategy(vertices: __.Has("region", "US-TX"), checkAdjacentVertices: true)).V()
.Count(),
"g.withStrategies(new ReadOnlyStrategy(), new SubgraphStrategy(vertices: __.has('region', 'US-TX'), checkAdjacentVertices: true)).V().count()"
},
diff --git a/gremlin-python/pom.xml b/gremlin-python/pom.xml
index c7e7620..df98f2f 100644
--- a/gremlin-python/pom.xml
+++ b/gremlin-python/pom.xml
@@ -142,6 +142,16 @@
<env key="PYTHONPATH" value=""/>
<arg line="up --build --abort-on-container-exit gremlin-python-package"/>
</exec>
+ <exec executable="docker-compose" failonerror="true">
+ <env key="PYTHONPATH" value=""/>
+ <env key="PACKAGE_DIR" value="${project.build.directory}/python-packaged"/>
+ <arg line="down"/>
+ </exec>
+ <exec executable="docker" failonerror="true">
+ <env key="PYTHONPATH" value=""/>
+ <env key="PACKAGE_DIR" value="${project.build.directory}/python-packaged"/>
+ <arg line="image prune --filter label=maintainer=dev@tinkerpop.apache.org -f"/>
+ </exec>
</target>
</configuration>
</execution>