Skip to content

Commit

Permalink
feature test change
Browse files Browse the repository at this point in the history
  • Loading branch information
debebantur committed Jul 26, 2023
1 parent 736a334 commit ba34157
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion test/feature/features/move.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Feature: Move test
"""
ADD SHARDING RULE r1 COLUMNS w_id;
ADD KEY RANGE krid1 FROM 1 TO 10 ROUTE TO sh1;
ADD KEY RANGE krid2 FROM 11 TO 20 ROUTE TO sh2;
"""
Then command return code should be "0"
When I run SQL on host "shard1"
Expand All @@ -17,8 +18,27 @@ Feature: Move test
When I run SQL on host "shard2"
"""
CREATE TABLE xMove(w_id INT, s TEXT);
insert into xMove(w_id, s) values(11, '002');
"""
Then command return code should be "0"
When I run SQL on host "shard2"
"""
SELECT * FROM xMove
"""
Then command return code should be "0"
And SQL result should match regexp
"""
002
"""
When I run SQL on host "shard1"
"""
SELECT * FROM xMove
"""
Then command return code should be "0"
And SQL result should match regexp
"""
001
"""
When I execute SQL on host "coordinator"
"""
MOVE KEY RANGE krid1 to sh2
Expand All @@ -31,7 +51,7 @@ Feature: Move test
Then command return code should be "0"
And SQL result should match regexp
"""
001
.*002(.|\n)*001
"""
When I run SQL on host "shard1"
"""
Expand Down

0 comments on commit ba34157

Please sign in to comment.