Skip to content

Commit 61c880c

Browse files
committed
Added sequence diagrams to tutorial 16
1 parent 1544344 commit 61c880c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

examples/16_docker_network_python/config/config.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@
9090
"show_message" : "on_failure",
9191
"deduction" : 0.5
9292
},
93+
{
94+
"method" : "diff",
95+
"actual_file" : "charlie/STDOUT.txt",
96+
"expected_file" : "charlie_simple.txt",
97+
"failure_message" : "ERROR: Your code did not match the expected output.",
98+
"show_message" : "on_failure",
99+
"deduction" : 0.5
100+
},
93101
{
94102
"method" : "diff",
95103
"actual_file" : "charlie/STDOUT.txt",
@@ -180,6 +188,15 @@
180188
"failure_message" : "ERROR: Your code did not match the expected output.",
181189
"show_message" : "on_failure",
182190
"deduction" : 0.5
191+
},
192+
//Adding this "sequence_diagram" filecheck will display a sequence diagram
193+
// of messages passed to the student.
194+
{
195+
"sequence_diagram" : true,
196+
"type" : "FileCheck",
197+
"title" : "Sequence Diagram Text File",
198+
"actual_file" : "router/sequence_diagram.txt",
199+
"points" : 0
183200
}
184201
]
185202
},
@@ -263,6 +280,13 @@
263280
"failure_message" : "ERROR: Your code did not match the expected output.",
264281
"show_message" : "on_failure",
265282
"deduction" : 0.5
283+
},
284+
{
285+
"sequence_diagram" : true,
286+
"type" : "FileCheck",
287+
"title" : "Sequence Diagram Text File",
288+
"actual_file" : "router/sequence_diagram.txt",
289+
"points" : 0
266290
}
267291
]
268292
},
@@ -297,6 +321,13 @@
297321
// In this example, we want the server to start before the client, so we add a sleep command.
298322
"commands" : ["python3 client.py"]
299323
// 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
300331
}
301332
],
302333
"dispatcher_actions" : [
@@ -351,6 +382,13 @@
351382
"failure_message" : "ERROR: Your code did not match the expected output.",
352383
"show_message" : "on_failure",
353384
"deduction" : 0.5
385+
},
386+
{
387+
"sequence_diagram" : true,
388+
"type" : "FileCheck",
389+
"title" : "Sequence Diagram Text File",
390+
"actual_file" : "router/sequence_diagram.txt",
391+
"points" : 0
354392
}
355393
]
356394
}

0 commit comments

Comments
 (0)