File tree Expand file tree Collapse file tree 5 files changed +117
-0
lines changed Expand file tree Collapse file tree 5 files changed +117
-0
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,15 @@ pub static BUILT_IN_TESTS: Lazy<Vec<Test>> = Lazy::new(|| {
93
93
include_str ! ( "../tests/close-receiver-with-sender-claimed.json" ) ,
94
94
include_str ! ( "../tests/close-sender-ok.json" ) ,
95
95
include_str ! ( "../tests/close-sender-with-receiver-claimed.json" ) ,
96
+ include_str ! ( "../tests/connect-15-on-14.json" ) ,
96
97
include_str ! ( "../tests/connect-and-disconnect.json" ) ,
97
98
include_str ! ( "../tests/connect-and-shutdown.json" ) ,
98
99
include_str ! ( "../tests/connect-ok.json" ) ,
99
100
include_str ! ( "../tests/connect-version-too-high.json" ) ,
100
101
include_str ! ( "../tests/connect-version-too-low.json" ) ,
102
+ include_str ! ( "../tests/connect2-14-on-15.json" ) ,
103
+ include_str ! ( "../tests/connect2-incompatible-major.json" ) ,
104
+ include_str ! ( "../tests/connect2-ok.json" ) ,
101
105
include_str ! ( "../tests/create-bus-listener.json" ) ,
102
106
include_str ! ( "../tests/create-channel-receiver.json" ) ,
103
107
include_str ! ( "../tests/create-channel-sender.json" ) ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " connect-15-on-14" ,
3
+ "description" : " Connect with version 1.15 using the old handshake" ,
4
+ "long-description" : " A client tries to connect with protocol version 1.15 using the old handshake that is only valid for 1.14." ,
5
+ "message-types" : [
6
+ " connect" ,
7
+ " connect-reply"
8
+ ],
9
+ "steps" : [
10
+ {
11
+ "type" : " connect" ,
12
+ "handshake" : false ,
13
+ "sync" : false ,
14
+ "shutdown" : false
15
+ },
16
+ {
17
+ "type" : " send" ,
18
+ "message" : " connect" ,
19
+ "version" : 15
20
+ },
21
+ {
22
+ "type" : " receive" ,
23
+ "message" : " connect-reply" ,
24
+ "result" : " incompatible-version" ,
25
+ "version" : 14
26
+ }
27
+ ]
28
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " connect2-14-on-15" ,
3
+ "description" : " Connect with version 1.14 using the new handshake" ,
4
+ "long-description" : " A client connects successfully with protocol version 1.14 using the new handshake." ,
5
+ "version" : " 1.15" ,
6
+ "message-types" : [
7
+ " connect2" ,
8
+ " connect-reply2"
9
+ ],
10
+ "steps" : [
11
+ {
12
+ "type" : " connect" ,
13
+ "handshake" : false
14
+ },
15
+ {
16
+ "type" : " send" ,
17
+ "message" : " connect2" ,
18
+ "major-version" : 1 ,
19
+ "minor-version" : 14
20
+ },
21
+ {
22
+ "type" : " receive" ,
23
+ "message" : " connect-reply2" ,
24
+ "result" : " ok" ,
25
+ "minor-version" : 14
26
+ }
27
+ ]
28
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " connect2-incompatible-major" ,
3
+ "description" : " Try to connect with version 2.14" ,
4
+ "long-description" : " A client tries to connect with protocol version 2.14." ,
5
+ "version" : " 1.15" ,
6
+ "message-types" : [
7
+ " connect2" ,
8
+ " connect-reply2"
9
+ ],
10
+ "steps" : [
11
+ {
12
+ "type" : " connect" ,
13
+ "handshake" : false ,
14
+ "sync" : false ,
15
+ "shutdown" : false
16
+ },
17
+ {
18
+ "type" : " send" ,
19
+ "message" : " connect2" ,
20
+ "major-version" : 2 ,
21
+ "minor-version" : 14
22
+ },
23
+ {
24
+ "type" : " receive" ,
25
+ "message" : " connect-reply2" ,
26
+ "result" : " incompatible-version"
27
+ }
28
+ ]
29
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " connect2-ok" ,
3
+ "description" : " Connect successfully (1.15)" ,
4
+ "long-description" : " A client connects successfully with protocol version 1.15." ,
5
+ "version" : " 1.15" ,
6
+ "message-types" : [
7
+ " connect2" ,
8
+ " connect-reply2"
9
+ ],
10
+ "steps" : [
11
+ {
12
+ "type" : " connect" ,
13
+ "handshake" : false
14
+ },
15
+ {
16
+ "type" : " send" ,
17
+ "message" : " connect2" ,
18
+ "major-version" : 1 ,
19
+ "minor-version" : 15
20
+ },
21
+ {
22
+ "type" : " receive" ,
23
+ "message" : " connect-reply2" ,
24
+ "result" : " ok" ,
25
+ "minor-version" : 15
26
+ }
27
+ ]
28
+ }
You can’t perform that action at this time.
0 commit comments