|
27 | 27 | // (e.g. when specifying outgoing connections). By default containers are named
|
28 | 28 | // container0, container1, container2, etc.
|
29 | 29 | "container_name" : "alpha",
|
30 |
| - "commands" : ["python3 server.py"], |
| 30 | + "commands" : ["python3 -u server.py"], |
31 | 31 | //outgoing_connections list the containers that this container is allowed to network to.
|
32 | 32 | "outgoing_connections" : ["beta", "charlie"]
|
33 | 33 | // You can specify a docker image here, and if it is built on submitty, this container
|
|
37 | 37 | },
|
38 | 38 | {
|
39 | 39 | "container_name" : "beta",
|
40 |
| - "commands" : ["python3 server.py"], |
| 40 | + "commands" : ["python3 -u server.py"], |
41 | 41 | "outgoing_connections" : ["alpha", "charlie"]
|
42 | 42 | },
|
43 | 43 | {
|
44 | 44 | "container_name" : "charlie",
|
45 |
| - "commands" : ["python3 server.py"], |
| 45 | + "commands" : ["python3 -u server.py"], |
46 | 46 | "outgoing_connections" : ["alpha", "beta"]
|
47 | 47 | },
|
48 | 48 | {
|
49 | 49 | "container_name" : "client",
|
50 | 50 | // It can be important to ensure your container's start in the correct order.
|
51 | 51 | // In this example, we want the server to start before the client, so we add a sleep command.
|
52 |
| - "commands" : ["python3 client.py"] |
| 52 | + "commands" : ["python3 -u client.py"] |
53 | 53 | // By not specifying a outgoing_connections array, we allow ourselves to connect to all nodes on the network
|
54 | 54 | }
|
55 | 55 | ],
|
|
118 | 118 | // (e.g. when specifying outgoing connections). By default containers are named
|
119 | 119 | // container0, container1, container2, etc.
|
120 | 120 | "container_name" : "alpha",
|
121 |
| - "commands" : ["python3 server.py"], |
| 121 | + "commands" : ["python3 -u server.py"], |
122 | 122 | //outgoing_connections list the containers that this container is allowed to network to.
|
123 | 123 | "outgoing_connections" : ["beta", "charlie"]
|
124 | 124 | // You can specify a docker image here, and if it is built on submitty, this container
|
|
128 | 128 | },
|
129 | 129 | {
|
130 | 130 | "container_name" : "beta",
|
131 |
| - "commands" : ["python3 server.py"], |
| 131 | + "commands" : ["python3 -u server.py"], |
132 | 132 | "outgoing_connections" : ["alpha", "charlie"]
|
133 | 133 | },
|
134 | 134 | {
|
135 | 135 | "container_name" : "charlie",
|
136 |
| - "commands" : ["python3 server.py"], |
| 136 | + "commands" : ["python3 -u server.py"], |
137 | 137 | "outgoing_connections" : ["alpha", "beta"]
|
138 | 138 | },
|
139 | 139 | {
|
140 | 140 | "container_name" : "client",
|
141 | 141 | // It can be important to ensure your container's start in the correct order.
|
142 | 142 | // In this example, we want the server to start before the client, so we add a sleep command.
|
143 |
| - "commands" : ["python3 client.py"] |
| 143 | + "commands" : ["python3 -u client.py"] |
144 | 144 | // By not specifying a outgoing_connections array, we allow ourselves to connect to all nodes on the network
|
145 | 145 | }
|
146 | 146 | ],
|
|
193 | 193 | // of messages passed to the student.
|
194 | 194 | {
|
195 | 195 | "sequence_diagram" : true,
|
196 |
| - "type" : "FileCheck", |
| 196 | + "method" : "errorIfEmpty", |
197 | 197 | "title" : "Sequence Diagram Text File",
|
198 | 198 | "actual_file" : "router/sequence_diagram.txt",
|
199 |
| - "points" : 0 |
| 199 | + "deduction" : 0.0 |
200 | 200 | }
|
201 | 201 | ]
|
202 | 202 | },
|
203 | 203 | {
|
204 |
| - //Despite the default being true, this testcase will not use a router. |
205 | 204 | "use_router" : true,
|
206 | 205 | "title" : "Moderate Testcase, With Router",
|
207 | 206 | "containers" : [
|
|
210 | 209 | // (e.g. when specifying outgoing connections). By default containers are named
|
211 | 210 | // container0, container1, container2, etc.
|
212 | 211 | "container_name" : "alpha",
|
213 |
| - "commands" : ["python3 server.py"], |
| 212 | + "commands" : ["python3 -u server.py"], |
214 | 213 | //outgoing_connections list the containers that this container is allowed to network to.
|
215 | 214 | "outgoing_connections" : ["beta", "charlie"]
|
216 | 215 | // You can specify a docker image here, and if it is built on submitty, this container
|
|
220 | 219 | },
|
221 | 220 | {
|
222 | 221 | "container_name" : "beta",
|
223 |
| - "commands" : ["python3 server.py"], |
| 222 | + "commands" : ["python3 -u server.py"], |
224 | 223 | "outgoing_connections" : ["alpha", "charlie"]
|
225 | 224 | },
|
226 | 225 | {
|
227 | 226 | "container_name" : "charlie",
|
228 |
| - "commands" : ["python3 server.py"], |
| 227 | + "commands" : ["python3 -u server.py"], |
229 | 228 | "outgoing_connections" : ["alpha", "beta"]
|
230 | 229 | },
|
231 | 230 | {
|
232 | 231 | "container_name" : "client",
|
233 | 232 | // It can be important to ensure your container's start in the correct order.
|
234 | 233 | // In this example, we want the server to start before the client, so we add a sleep command.
|
235 |
| - "commands" : ["python3 client.py"] |
| 234 | + "commands" : ["python3 -u client.py"] |
236 | 235 | // By not specifying a outgoing_connections array, we allow ourselves to connect to all nodes on the network
|
| 236 | + }, |
| 237 | + { |
| 238 | + "container_name" : "router", |
| 239 | + "commands" : ["python3 -u custom_router.py"] |
237 | 240 | }
|
238 | 241 | ],
|
239 | 242 | "dispatcher_actions" : [
|
|
283 | 286 | },
|
284 | 287 | {
|
285 | 288 | "sequence_diagram" : true,
|
286 |
| - "type" : "FileCheck", |
| 289 | + "method" : "errorIfEmpty", |
287 | 290 | "title" : "Sequence Diagram Text File",
|
288 | 291 | "actual_file" : "router/sequence_diagram.txt",
|
289 |
| - "points" : 0 |
| 292 | + "deduction" : 0.0 |
290 | 293 | }
|
291 | 294 | ]
|
292 | 295 | },
|
|
297 | 300 | "containers" : [
|
298 | 301 | {
|
299 | 302 | "container_name" : "alpha",
|
300 |
| - "commands" : ["python3 server.py"], |
| 303 | + "commands" : ["python3 -u server.py"], |
301 | 304 | "outgoing_connections" : ["beta", "charlie", "delta"]
|
302 | 305 | },
|
303 | 306 | {
|
304 | 307 | "container_name" : "beta",
|
305 |
| - "commands" : ["python3 server.py"], |
| 308 | + "commands" : ["python3 -u server.py"], |
306 | 309 | "outgoing_connections" : ["alpha", "charlie", "delta"]
|
307 | 310 | },
|
308 | 311 | {
|
309 | 312 | "container_name" : "charlie",
|
310 |
| - "commands" : ["python3 server.py"], |
| 313 | + "commands" : ["python3 -u server.py"], |
311 | 314 | "outgoing_connections" : ["alpha", "beta", "delta"]
|
312 | 315 | },
|
313 | 316 | {
|
314 | 317 | "container_name" : "delta",
|
315 |
| - "commands" : ["python3 server.py"], |
| 318 | + "commands" : ["python3 -u server.py"], |
316 | 319 | "outgoing_connections" : ["alpha", "beta", "charlie"]
|
317 | 320 | },
|
318 | 321 | {
|
319 | 322 | "container_name" : "client",
|
320 | 323 | // It can be important to ensure your container's start in the correct order.
|
321 | 324 | // In this example, we want the server to start before the client, so we add a sleep command.
|
322 |
| - "commands" : ["python3 client.py"] |
| 325 | + "commands" : ["python3 -u client.py"] |
323 | 326 | // By not specifying a outgoing_connections array, we allow ourselves to connect to all nodes on the network
|
324 |
| - }, |
325 |
| - { |
326 |
| - "sequence_diagram" : true, |
327 |
| - "type" : "FileCheck", |
328 |
| - "title" : "Sequence Diagram Text File", |
329 |
| - "actual_file" : "router/sequence_diagram.txt", |
330 |
| - "points" : 0 |
331 | 327 | }
|
332 | 328 | ],
|
333 | 329 | "dispatcher_actions" : [
|
|
385 | 381 | },
|
386 | 382 | {
|
387 | 383 | "sequence_diagram" : true,
|
388 |
| - "type" : "FileCheck", |
| 384 | + "method" : "errorIfEmpty", |
389 | 385 | "title" : "Sequence Diagram Text File",
|
390 | 386 | "actual_file" : "router/sequence_diagram.txt",
|
391 |
| - "points" : 0 |
| 387 | + "deduction" : 0.0 |
392 | 388 | }
|
393 | 389 | ]
|
394 | 390 | }
|
|
0 commit comments