-
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 27632c1
Showing
4 changed files
with
260 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 |
29 changes: 29 additions & 0 deletions
29
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,29 @@ | ||
!: 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} | ||
---- | ||
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": 2} | ||
{{ | ||
C: PULL {"n": {"Z": "*"}, "[qid]": -1} | ||
---- | ||
C: PULL {"n": {"Z": "*"}, "qid": 2} | ||
}} | ||
S: FAILURE {"code": "Neo.ClientError.MadeUp.Code", "message": "message"} | ||
*: RESET | ||
?: GOODBYE |
27 changes: 27 additions & 0 deletions
27
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,27 @@ | ||
!: 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} | ||
---- | ||
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