Skip to content

Commit 647bbd8

Browse files
committed
fix: refactor itk scenatios and add GET support for subscribe endpoint, handle binary file payloads, and update REST transport headers
1 parent a92f54e commit 647bbd8

8 files changed

Lines changed: 444 additions & 364 deletions

File tree

itk/scenarios.json

Lines changed: 67 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -1,199 +1,114 @@
11
{
22
"tests": [
33
{
4-
"name": "Current vs Go v10 - JSONRPC & GRPC (Non-Streaming)",
5-
"sdks": ["current", "go_v10"],
6-
"traversal": "euler",
7-
"edges": ["0->1", "1->0"],
8-
"protocols": ["jsonrpc", "grpc"],
9-
"behavior": "send_message"
10-
},
11-
{
12-
"name": "Current vs Go v10 - HTTP_JSON (Non-Streaming)",
13-
"sdks": ["current", "go_v10"],
14-
"traversal": "euler",
15-
"edges": ["0->1", "1->0"],
16-
"protocols": ["http_json"],
17-
"behavior": "send_message"
18-
},
19-
{
20-
"name": "Current vs Go v10 - JSONRPC & GRPC (Streaming)",
21-
"sdks": ["current", "go_v10"],
22-
"traversal": "euler",
23-
"edges": ["0->1", "1->0"],
24-
"protocols": ["jsonrpc", "grpc"],
25-
"streaming": true,
4+
"name": "Current vs Python v10 - Send Message (Non-Streaming)",
5+
"sdks": [
6+
"current",
7+
"python_v10"
8+
],
9+
"traversal": "euler",
10+
"edges": ["0->1", "1->0"],
11+
"protocols": [
12+
"jsonrpc",
13+
"grpc",
14+
"http_json"
15+
],
2616
"behavior": "send_message"
2717
},
2818
{
29-
"name": "Current vs Go v10 - HTTP_JSON (Streaming)",
30-
"sdks": ["current", "go_v10"],
19+
"name": "Current vs Python v10 - Send Message (Streaming)",
20+
"sdks": [
21+
"current",
22+
"python_v10"
23+
],
3124
"traversal": "euler",
3225
"edges": ["0->1", "1->0"],
33-
"protocols": ["http_json"],
26+
"protocols": [
27+
"jsonrpc",
28+
"grpc",
29+
"http_json"
30+
],
3431
"streaming": true,
3532
"behavior": "send_message"
3633
},
3734
{
38-
"name": "Push Notification - JSONRPC & GRPC",
39-
"sdks": ["current", "go_v10"],
40-
"traversal": "euler",
41-
"edges": ["0->1", "1->0"],
42-
"protocols": ["jsonrpc", "grpc"],
43-
"behavior": "push_notification"
44-
},
45-
{
46-
"name": "Push Notification - HTTP_JSON",
47-
"sdks": ["current", "go_v10"],
35+
"name": "Current vs Python v10 - Push Notification",
36+
"sdks": [
37+
"current",
38+
"python_v10"
39+
],
4840
"traversal": "euler",
4941
"edges": ["0->1", "1->0"],
50-
"protocols": ["http_json"],
42+
"protocols": [
43+
"jsonrpc",
44+
"grpc",
45+
"http_json"
46+
],
5147
"behavior": "push_notification"
5248
},
5349
{
54-
"name": "v0.3 Compat: Current vs Go v03 - JSONRPC & GRPC (Non-Streaming)",
55-
"sdks": ["current", "go_v03"],
50+
"name": "Current vs Python v10 - Resubscribe",
51+
"sdks": [
52+
"current",
53+
"python_v10"
54+
],
5655
"traversal": "euler",
5756
"edges": ["0->1", "1->0"],
58-
"protocols": ["jsonrpc", "grpc"],
59-
"behavior": "send_message"
60-
},
61-
{
62-
"name": "v0.3 Compat: Current vs Go v03 - JSONRPC & GRPC (Streaming)",
63-
"sdks": ["current", "go_v03"],
64-
"traversal": "euler",
65-
"edges": ["0->1", "1->0"],
66-
"protocols": ["jsonrpc", "grpc"],
57+
"protocols": [
58+
"jsonrpc",
59+
"grpc",
60+
"http_json"
61+
],
6762
"streaming": true,
68-
"behavior": "send_message"
69-
},
70-
{
71-
"name": "v0.3 Compat: Push Notification (Current vs Go v03) - JSONRPC & GRPC",
72-
"sdks": ["current", "go_v03"],
73-
"traversal": "euler",
74-
"edges": ["0->1", "1->0"],
75-
"protocols": ["jsonrpc", "grpc"],
76-
"behavior": "push_notification"
77-
},
78-
{
79-
"name": "v0.3 Compat: Current vs Python v03 - JSONRPC & GRPC (Non-Streaming)",
80-
"sdks": ["current", "python_v03"],
81-
"traversal": "euler",
82-
"edges": ["0->1", "1->0"],
83-
"protocols": ["jsonrpc", "grpc"],
84-
"behavior": "send_message"
85-
},
86-
{
87-
"name": "v0.3 Compat: Current vs Python v03 - HTTP_JSON (Non-Streaming)",
88-
"sdks": ["current", "python_v03"],
89-
"traversal": "euler",
90-
"edges": ["0->1", "1->0"],
91-
"protocols": ["http_json"],
92-
"behavior": "send_message"
63+
"behavior": "resubscribe"
9364
},
9465
{
95-
"name": "v0.3 Compat: Current vs Python v03 - JSONRPC & GRPC (Streaming)",
66+
"name": "Current vs Python v03 - Send Message (Non-Streaming)",
9667
"sdks": ["current", "python_v03"],
9768
"traversal": "euler",
9869
"edges": ["0->1", "1->0"],
99-
"protocols": ["jsonrpc", "grpc"],
100-
"streaming": true,
70+
"protocols": [
71+
"jsonrpc",
72+
"grpc",
73+
"http_json"
74+
],
10175
"behavior": "send_message"
10276
},
10377
{
104-
"name": "v0.3 Compat: Current vs Python v03 - HTTP_JSON (Streaming)",
78+
"name": "Current vs Python v03 - Send Message (Streaming)",
10579
"sdks": ["current", "python_v03"],
10680
"traversal": "euler",
10781
"edges": ["0->1", "1->0"],
108-
"protocols": ["http_json"],
82+
"protocols": [
83+
"jsonrpc",
84+
"grpc",
85+
"http_json"
86+
],
10987
"streaming": true,
11088
"behavior": "send_message"
11189
},
11290
{
113-
"name": "v0.3 Compat: Push Notification (Current vs Python v03) - JSONRPC & GRPC",
91+
"name": "Current vs Python v03 - Push Notification",
11492
"sdks": ["current", "python_v03"],
11593
"traversal": "euler",
11694
"edges": ["0->1", "1->0"],
117-
"protocols": ["jsonrpc", "grpc"],
95+
"protocols": [
96+
"jsonrpc",
97+
"grpc",
98+
"http_json"
99+
],
118100
"behavior": "push_notification"
119101
},
120102
{
121-
"name": "v0.3 Compat: Push Notification (Current vs Python v03) - HTTP_JSON",
122-
"sdks": ["current", "python_v03"],
123-
"traversal": "euler",
124-
"edges": ["0->1", "1->0"],
125-
"protocols": ["http_json"],
126-
"behavior": "push_notification"
127-
},
128-
{
129-
"name": "Resubscribe - Current vs Go v10 - JSONRPC",
130-
"sdks": ["current", "go_v10"],
131-
"traversal": "euler",
132-
"edges": ["0->1", "1->0"],
133-
"protocols": ["jsonrpc"],
134-
"streaming": true,
135-
"behavior": "resubscribe"
136-
},
137-
{
138-
"name": "Resubscribe - Current vs Go v10 - GRPC",
139-
"sdks": ["current", "go_v10"],
140-
"traversal": "euler",
141-
"edges": ["0->1", "1->0"],
142-
"protocols": ["grpc"],
143-
"streaming": true,
144-
"behavior": "resubscribe"
145-
},
146-
{
147-
"name": "Resubscribe - Current vs Go v10 - HTTP_JSON",
148-
"sdks": ["current", "go_v10"],
149-
"traversal": "euler",
150-
"edges": ["0->1", "1->0"],
151-
"protocols": ["http_json"],
152-
"streaming": true,
153-
"behavior": "resubscribe"
154-
},
155-
{
156-
"name": "v0.3 Compat: Resubscribe (Current vs Go v03) - JSONRPC",
157-
"sdks": ["current", "go_v03"],
158-
"traversal": "euler",
159-
"edges": ["0->1", "1->0"],
160-
"protocols": ["jsonrpc"],
161-
"streaming": true,
162-
"behavior": "resubscribe"
163-
},
164-
{
165-
"name": "v0.3 Compat: Resubscribe (Current vs Go v03) - GRPC",
166-
"sdks": ["current", "go_v03"],
167-
"traversal": "euler",
168-
"edges": ["0->1", "1->0"],
169-
"protocols": ["grpc"],
170-
"streaming": true,
171-
"behavior": "resubscribe"
172-
},
173-
{
174-
"name": "v0.3 Compat: Resubscribe (Current vs Python v03) - JSONRPC",
175-
"sdks": ["current", "python_v03"],
176-
"traversal": "euler",
177-
"edges": ["0->1", "1->0"],
178-
"protocols": ["jsonrpc"],
179-
"streaming": true,
180-
"behavior": "resubscribe"
181-
},
182-
{
183-
"name": "v0.3 Compat: Resubscribe (Current vs Python v03) - GRPC",
184-
"sdks": ["current", "python_v03"],
185-
"traversal": "euler",
186-
"edges": ["0->1", "1->0"],
187-
"protocols": ["grpc"],
188-
"streaming": true,
189-
"behavior": "resubscribe"
190-
},
191-
{
192-
"name": "v0.3 Compat: Resubscribe (Current vs Python v03) - HTTP_JSON",
103+
"name": "Current vs Python v03 - Resubscribe",
193104
"sdks": ["current", "python_v03"],
194105
"traversal": "euler",
195106
"edges": ["0->1", "1->0"],
196-
"protocols": ["http_json"],
107+
"protocols": [
108+
"jsonrpc",
109+
"grpc",
110+
"http_json"
111+
],
197112
"streaming": true,
198113
"behavior": "resubscribe"
199114
}

0 commit comments

Comments
 (0)