-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #668 from ackleymi/add-missing-test-defs
Adds NextExpectedSeqNum setting
- Loading branch information
Showing
30 changed files
with
490 additions
and
30 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
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
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
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,10 @@ | ||
[DEFAULT] | ||
SocketAcceptPort=5005 | ||
SenderCompID=ISLD | ||
TargetCompID=TW | ||
FileLogPath=tmp | ||
|
||
[SESSION] | ||
BeginString=FIX.4.4 | ||
DataDictionary=../spec/FIX44.xml | ||
EnableNextExpectedMsgSeqNum=Y |
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,12 @@ | ||
[DEFAULT] | ||
SocketAcceptPort=5006 | ||
SenderCompID=ISLD | ||
TargetCompID=TW | ||
FileLogPath=tmp | ||
|
||
[SESSION] | ||
BeginString=FIXT.1.1 | ||
DefaultApplVerID=FIX.5.0 | ||
TransportDataDictionary=../spec/FIXT11.xml | ||
AppDataDictionary=../spec/FIX50.xml | ||
EnableNextExpectedMsgSeqNum=Y |
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,12 @@ | ||
[DEFAULT] | ||
SocketAcceptPort=5007 | ||
SenderCompID=ISLD | ||
TargetCompID=TW | ||
FileLogPath=tmp | ||
|
||
[SESSION] | ||
BeginString=FIXT.1.1 | ||
DefaultApplVerID=FIX.5.0SP1 | ||
TransportDataDictionary=../spec/FIXT11.xml | ||
AppDataDictionary=../spec/FIX50SP1.xml | ||
EnableNextExpectedMsgSeqNum=Y |
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,12 @@ | ||
[DEFAULT] | ||
SocketAcceptPort=5008 | ||
SenderCompID=ISLD | ||
TargetCompID=TW | ||
FileLogPath=tmp | ||
|
||
[SESSION] | ||
BeginString=FIXT.1.1 | ||
DefaultApplVerID=FIX.5.0SP2 | ||
TransportDataDictionary=../spec/FIXT11.xml | ||
AppDataDictionary=../spec/FIX50SP2.xml | ||
EnableNextExpectedMsgSeqNum=Y |
16 changes: 16 additions & 0 deletions
16
_test/definitions/nextexpectedseqnum/fix44/2a_NextExpectedMsgSeqNumCorrect.def
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,16 @@ | ||
iCONNECT | ||
|
||
#------------------------ | ||
# logon message and response | ||
# send logon with sequence number equals to 1 | ||
# expect for a logon response with NextExpectedMsgSeqNum field equals to 2 | ||
#------------------------ | ||
|
||
I8=FIX.4.435=A34=149=TW52=<TIME>56=ISLD98=0789=1108=2 | ||
E8=FIX.4.49=6635=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=2789=210=0 | ||
|
||
# logout message and response | ||
I8=FIX.4.435=534=249=TW52=<TIME>56=ISLD | ||
E8=FIX.4.49=4935=534=249=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
10 changes: 10 additions & 0 deletions
10
_test/definitions/nextexpectedseqnum/fix44/2b_NextExpectedMsgSeqNumTooHigh.def
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,10 @@ | ||
# If message NextExpectedMsgSeqNum field is too high, we must disconnect | ||
|
||
iCONNECT | ||
iSET_SESSION FIX.4.4:ISLD->TW NEXTSENDERSEQNUM=1 | ||
iSET_SESSION FIX.4.4:ISLD->TW NEXTTARGETSEQNUM=1 | ||
|
||
I8=FIX.4.435=A34=100049=TW52=<TIME>56=ISLD98=0789=1200108=30 | ||
|
||
E8=FIX.4.49=13535=534=149=ISLD52=00000000-00:00:00.00056=TW58=Tag 789 (NextExpectedMsgSeqNum) is higher than expected. Expected 1, Received 120010=0 | ||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix44/2c_NextExpectedMsgSeqNumTooLow.def
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,14 @@ | ||
iCONNECT | ||
iSET_SESSION FIX.4.4:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIX.4.4:ISLD->TW NEXTTARGETSEQNUM=1 | ||
|
||
I8=FIX.4.435=A34=149=TW52=<TIME>56=ISLD98=0789=1108=30 | ||
|
||
E8=FIX.4.49=7035=A34=200049=ISLD52=00000000-00:00:00.00056=TW98=0108=30789=210=0 | ||
E8=FIX.4.49=9435=434=143=Y49=ISLD52=<TIME>56=TW122=<TIME>36=2001123=Y | ||
|
||
# logout message and response | ||
I8=FIX.4.435=534=249=TW52=<TIME>56=ISLD | ||
E8=FIX.4.49=5235=534=200149=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix44/ResetSeqNumFlagAndNextExpectedMsgSeqNum.def
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,14 @@ | ||
# FIX Logon using tag 141/ResetSeqNumFlag and tag 789/NextExpectedSeqMsgNum | ||
|
||
iCONNECT | ||
iSET_SESSION FIX.4.4:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIX.4.4:ISLD->TW NEXTTARGETSEQNUM=2000 | ||
|
||
I8=FIX.4.435=A34=149=TW52=<TIME>56=ISLD98=0789=1141=Y108=30 | ||
E8=FIX.4.49=7335=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=30141=Y789=210=0 | ||
|
||
# logout message and response | ||
I8=FIX.4.435=534=249=TW52=<TIME>56=ISLD | ||
E8=FIX.4.49=4935=534=249=ISLD52=00000000-00:00:0056=TW10=0 | ||
|
||
eDISCONNECT |
16 changes: 16 additions & 0 deletions
16
_test/definitions/nextexpectedseqnum/fix50/2a_NextExpectedMsgSeqNumCorrect.def
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,16 @@ | ||
iCONNECT | ||
|
||
#------------------------ | ||
# logon message and response | ||
# send logon with sequence number equals to 1 | ||
# expect for a logon response with NextExpectedMsgSeqNum field equals to 2 | ||
#------------------------ | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=11137=7108=2 | ||
E8=FIXT.1.19=7335=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=2789=21137=710=0 | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=4935=534=249=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
9 changes: 9 additions & 0 deletions
9
_test/definitions/nextexpectedseqnum/fix50/2b_NextExpectedMsgSeqNumTooHigh.def
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,9 @@ | ||
# If message NextExpectedMsgSeqNum field is too high, we must disconnect | ||
|
||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=1 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=1 | ||
I8=FIXT.1.135=A34=100049=TW52=<TIME>56=ISLD98=0789=12001137=7108=30 | ||
|
||
E8=FIXT.1.19=13535=534=149=ISLD52=00000000-00:00:00.00056=TW58=Tag 789 (NextExpectedMsgSeqNum) is higher than expected. Expected 1, Received 120010=0 | ||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix50/2c_NextExpectedMsgSeqNumTooLow.def
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,14 @@ | ||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=1 | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=11137=7108=30 | ||
|
||
E8=FIXT.1.19=7735=A34=200049=ISLD52=00000000-00:00:00.00056=TW98=0108=30789=21137=710=0 | ||
E8=FIXT.1.19=9435=434=143=Y49=ISLD52=<TIME>56=TW122=<TIME>36=2001123=Y | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=5235=534=200149=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix50/ResetSeqNumFlagAndNextExpectedMsgSeqNum.def
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,14 @@ | ||
# FIX Logon using tag 141/ResetSeqNumFlag and tag 789/NextExpectedSeqMsgNum | ||
|
||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=2000 | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=1141=Y1137=7108=30 | ||
E8=FIXT.1.19=8035=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=30141=Y789=21137=710=0 | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=4935=534=249=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
16 changes: 16 additions & 0 deletions
16
_test/definitions/nextexpectedseqnum/fix50sp1/2a_NextExpectedMsgSeqNumCorrect.def
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,16 @@ | ||
iCONNECT | ||
|
||
#------------------------ | ||
# logon message and response | ||
# send logon with sequence number equals to 1 | ||
# expect for a logon response with NextExpectedMsgSeqNum field equals to 2 | ||
#------------------------ | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=11137=8108=2 | ||
E8=FIXT.1.19=7335=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=2789=21137=810=0 | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=4935=534=249=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
9 changes: 9 additions & 0 deletions
9
_test/definitions/nextexpectedseqnum/fix50sp1/2b_NextExpectedMsgSeqNumTooHigh.def
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,9 @@ | ||
# If message NextExpectedMsgSeqNum field is too high, we must disconnect | ||
|
||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=1 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=1 | ||
I8=FIXT.1.135=A34=100049=TW52=<TIME>56=ISLD98=0789=12001137=8108=30 | ||
|
||
E8=FIXT.1.19=13535=534=149=ISLD52=00000000-00:00:00.00056=TW58=Tag 789 (NextExpectedMsgSeqNum) is higher than expected. Expected 1, Received 120010=0 | ||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix50sp1/2c_NextExpectedMsgSeqNumTooLow.def
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,14 @@ | ||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=1 | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=11137=10108=30 | ||
|
||
E8=FIXT.1.19=7735=A34=200049=ISLD52=00000000-00:00:00.00056=TW98=0108=30789=21137=810=0 | ||
E8=FIXT.1.19=9435=434=143=Y49=ISLD52=<TIME>56=TW122=<TIME>36=2001123=Y | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=5235=534=200149=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix50sp1/ResetSeqNumFlagAndNextExpectedMsgSeqNum.def
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,14 @@ | ||
# FIX Logon using tag 141/ResetSeqNumFlag and tag 789/NextExpectedSeqMsgNum | ||
|
||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=2000 | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=1141=Y1137=8108=30 | ||
E8=FIXT.1.19=8035=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=30141=Y789=21137=810=0 | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=4935=534=249=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
16 changes: 16 additions & 0 deletions
16
_test/definitions/nextexpectedseqnum/fix50sp2/2a_NextExpectedMsgSeqNumCorrect.def
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,16 @@ | ||
iCONNECT | ||
|
||
#------------------------ | ||
# logon message and response | ||
# send logon with sequence number equals to 1 | ||
# expect for a logon response with NextExpectedMsgSeqNum field equals to 2 | ||
#------------------------ | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=11137=9108=2 | ||
E8=FIXT.1.19=7335=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=2789=21137=910=0 | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=4935=534=249=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
9 changes: 9 additions & 0 deletions
9
_test/definitions/nextexpectedseqnum/fix50sp2/2b_NextExpectedMsgSeqNumTooHigh.def
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,9 @@ | ||
# If message NextExpectedMsgSeqNum field is too high, we must disconnect | ||
|
||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=1 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=1 | ||
I8=FIXT.1.135=A34=100049=TW52=<TIME>56=ISLD98=0789=12001137=9108=30 | ||
|
||
E8=FIXT.1.19=13535=534=149=ISLD52=00000000-00:00:00.00056=TW58=Tag 789 (NextExpectedMsgSeqNum) is higher than expected. Expected 1, Received 120010=0 | ||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix50sp2/2c_NextExpectedMsgSeqNumTooLow.def
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,14 @@ | ||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=1 | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=11137=9108=30 | ||
|
||
E8=FIXT.1.19=7735=A34=200049=ISLD52=00000000-00:00:00.00056=TW98=0108=30789=21137=910=0 | ||
E8=FIXT.1.19=9435=434=143=Y49=ISLD52=<TIME>56=TW122=<TIME>36=2001123=Y | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=5235=534=200149=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
14 changes: 14 additions & 0 deletions
14
_test/definitions/nextexpectedseqnum/fix50sp2/ResetSeqNumFlagAndNextExpectedMsgSeqNum.def
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,14 @@ | ||
# FIX Logon using tag 141/ResetSeqNumFlag and tag 789/NextExpectedSeqMsgNum | ||
|
||
iCONNECT | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTSENDERSEQNUM=2000 | ||
iSET_SESSION FIXT.1.1:ISLD->TW NEXTTARGETSEQNUM=2000 | ||
|
||
I8=FIXT.1.135=A34=149=TW52=<TIME>56=ISLD98=0789=1141=Y1137=9108=30 | ||
E8=FIXT.1.19=8035=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=30141=Y789=21137=910=0 | ||
|
||
# logout message and response | ||
I8=FIXT.1.135=534=249=TW52=<TIME>56=ISLD | ||
E8=FIXT.1.19=4935=534=249=ISLD52=00000000-00:00:00.00056=TW10=0 | ||
|
||
eDISCONNECT |
Oops, something went wrong.