-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These tests verify transaction and its results handling when the transaction is terminated by a failure.
- Loading branch information
1 parent
a65e34f
commit 4c4a158
Showing
4 changed files
with
245 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!: BOLT 5.3 | ||
|
||
A: HELLO {"{}": "*"} | ||
A: LOGON {"{}": "*"} | ||
*: RESET | ||
C: BEGIN {"{}": "*"} | ||
S: SUCCESS {} | ||
C: RUN "failing on pull" {"{}": "*"} {"{}": "*"} | ||
S: SUCCESS {"fields": ["n"], "qid": 1} | ||
C: PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
S: RECORD [1] | ||
RECORD [2] | ||
FAILURE {"code": "Neo.ClientError.MadeUp.Code", "message": "message"} | ||
*: RESET | ||
?: GOODBYE |
21 changes: 21 additions & 0 deletions
21
tests/stub/tx_run/scripts/tx_successful_and_failing_on_pull_streams.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
!: BOLT 5.3 | ||
|
||
A: HELLO {"{}": "*"} | ||
A: LOGON {"{}": "*"} | ||
*: RESET | ||
C: BEGIN {"{}": "*"} | ||
S: SUCCESS {} | ||
C: RUN "RETURN 1 AS n" {"{}": "*"} {"{}": "*"} | ||
S: SUCCESS {"fields": ["n"], "qid": 1} | ||
{? | ||
C: PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
S: RECORD [1] | ||
RECORD [2] | ||
SUCCESS {"has_more": true, "type": "r"} | ||
?} | ||
C: RUN "failing on pull" {"{}": "*"} {"{}": "*"} | ||
S: SUCCESS {"fields": ["n"], "qid": 1} | ||
C: PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
S: FAILURE {"code": "Neo.ClientError.MadeUp.Code", "message": "message"} | ||
*: RESET | ||
?: GOODBYE |
23 changes: 23 additions & 0 deletions
23
tests/stub/tx_run/scripts/tx_successful_and_failing_on_run_streams.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
!: BOLT 5.3 | ||
|
||
A: HELLO {"{}": "*"} | ||
A: LOGON {"{}": "*"} | ||
*: RESET | ||
C: BEGIN {"{}": "*"} | ||
S: SUCCESS {} | ||
C: RUN "RETURN 1 AS n" {"{}": "*"} {"{}": "*"} | ||
S: SUCCESS {"fields": ["n"], "qid": 1} | ||
{? | ||
C: PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
S: RECORD [1] | ||
RECORD [2] | ||
SUCCESS {"has_more": true, "type": "r"} | ||
?} | ||
C: RUN "invalid" {"{}": "*"} {"{}": "*"} | ||
S: FAILURE {"code": "Neo.ClientError.Statement.SyntaxError", "message": "Invalid input"} | ||
{? | ||
C: PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
S: IGNORED | ||
?} | ||
*: RESET | ||
?: GOODBYE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters