Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
cangfengzhs committed Dec 15, 2021
1 parent e786d0f commit 0f6de68
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/tck/features/insert/insertVertexOnly.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (c) 2021 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.

Feature: insert vertex without tag
Background: Background name
Given an empty graph
And create a space with following options:
| partition_num | 9 |
| replica_factor | 1 |
| vid_type | int64 |
Scenario: insert vertex only
Given having executed:
"""
CREATE EDGE e();
"""
And wait 6 seconds
When executing query:
"""
INSERT VERTEX VALUES 1,2,3;
INSERT EDGE e() VALUES 1->2:(),2->3:();
"""
Then the execution should be successful
When executing query:
"""
GO 2 STEP FROM 1 OVER e yield e._dst AS dst;
"""
Then the result should be, in any order:
| dst |
| 3 |
Then drop the used space

0 comments on commit 0f6de68

Please sign in to comment.