This repository has been archived by the owner on Dec 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Orchestrator must tolerant to unexpected deaths of processes. So add …
…an unit test to /test. We should add many unit tests here in near future.. In current impl., an action being sent to dead process is lost. Even if process has revived, an action is lost because revived process has a different TCP socket.
- Loading branch information
1 parent
e07ff50
commit 5ee85d0
Showing
4 changed files
with
47 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# UNITTESTS GOES HERE |
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,7 @@ | ||
{ | ||
"type": "event", | ||
"class": "InspectionEndEvent", | ||
"process": "dummy", | ||
"uuid": "1f13eaa6-4b92-45f0-a4de-1236081dc652", | ||
"option": {} | ||
} |
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,6 @@ | ||
$ curl http://localhost:10000/api/v1/dummy | ||
^C (== KILL PROCESS) | ||
|
||
$ curl --data @dummy.json http://localhost:10000/api/v1 | ||
==> WHAT HAPPENS? | ||
|