tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [36/50] tinkerpop git commit: TINKERPOP-1784 Added properties() feature tests
Date Sat, 11 Nov 2017 00:56:40 GMT
TINKERPOP-1784 Added properties() feature tests


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/28c4b1c9
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/28c4b1c9
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/28c4b1c9

Branch: refs/heads/TINKERPOP-1784
Commit: 28c4b1c9ab49873423296c27c5303475a93647ea
Parents: b41ba18
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Fri Nov 10 14:31:20 2017 -0500
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Fri Nov 10 19:55:21 2017 -0500

----------------------------------------------------------------------
 gremlin-test/features/map/Properties.feature | 68 +++++++++++++++++++++++
 1 file changed, 68 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28c4b1c9/gremlin-test/features/map/Properties.feature
----------------------------------------------------------------------
diff --git a/gremlin-test/features/map/Properties.feature b/gremlin-test/features/map/Properties.feature
new file mode 100644
index 0000000..35ccd77
--- /dev/null
+++ b/gremlin-test/features/map/Properties.feature
@@ -0,0 +1,68 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+Feature: Step - properties()
+
+  Scenario: g_V_hasXageX_propertiesXname_ageX_value
+    Given the modern graph
+    And the traversal of
+      """
+      g.V().has("age").properties("name", "age").value()
+      """
+    When iterated to list
+    Then the result should be unordered
+      | result |
+      | marko |
+      | d[29] |
+      | vadas |
+      | d[27] |
+      | josh  |
+      | d[32] |
+      | peter |
+      | d[35] |
+
+  Scenario: g_V_hasXageX_propertiesXage_nameX_value
+    Given the modern graph
+    And the traversal of
+      """
+      g.V().has("age").properties("age", "name").value()
+      """
+    When iterated to list
+    Then the result should be unordered
+      | result |
+      | marko |
+      | d[29] |
+      | vadas |
+      | d[27] |
+      | josh  |
+      | d[32] |
+      | peter |
+      | d[35] |
+
+  Scenario: g_V_hasXageX_properties_hasXid_nameIdX_value
+    Given an unsupported test
+    Then nothing should happen because
+      """
+      There is no way to currently get property identifiers on elements.
+      """
+
+  Scenario: g_V_hasXageX_propertiesXnameX
+    Given an unsupported test
+    Then nothing should happen because
+      """
+      There is no way to currently assert property elements in the test logic.
+      """


Mime
View raw message