Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void testCmdStopByRouteID() throws IOException {
executeBackground(String.format("run --source-dir=%s", mountPoint()));
checkLogContains("Hello world!");
execute("cmd stop-route --id=route1");
checkCommandOutputsPattern("get route",
checkCommandOutputsPattern("get route --wide-uri",
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started",
ASSERTION_WAIT_SECONDS);
}
Expand All @@ -49,7 +49,7 @@ public void testCmdStopByPID() throws IOException {
executeBackground(String.format("run %s/route2.yaml", mountPoint()));
checkLogContains("Hello world!");
execute("cmd stop-route " + process);
checkCommandOutputsPattern("get route",
checkCommandOutputsPattern("get route --wide-uri",
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped.*\\n.*route2.*timer:\\/\\/(yaml|java)\\?period=1000\\s+Started",
ASSERTION_WAIT_SECONDS);
}
Expand All @@ -61,7 +61,7 @@ public void testCmdStopAll() throws IOException {
executeBackground(String.format("run --source-dir=%s", mountPoint()));
checkLogContains("Hello world!");
execute("cmd stop-route");
checkCommandOutputsPattern("get route",
checkCommandOutputsPattern("get route --wide-uri",
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped",
ASSERTION_WAIT_SECONDS);
}
Expand All @@ -74,7 +74,7 @@ public void testCmdStartByRouteID() throws IOException {
checkLogContains("Hello world!");
execute("cmd stop-route");
execute("cmd start-route --id=route1");
checkCommandOutputsPattern("get route",
checkCommandOutputsPattern("get route --wide-uri",
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped",
ASSERTION_WAIT_SECONDS);
}
Expand All @@ -88,7 +88,7 @@ public void testCmdStartByPID() throws IOException {
checkLogContains("Hello world!");
execute("cmd stop-route");
execute("cmd start-route " + process);
checkCommandOutputsPattern("get route",
checkCommandOutputsPattern("get route --wide-uri",
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started.*\\n.*route2.*timer:\\/\\/(yaml|java)\\?period=1000\\s+Stopped",
ASSERTION_WAIT_SECONDS);
}
Expand All @@ -101,7 +101,7 @@ public void testCmdStartAll() throws IOException {
checkLogContains("Hello world!");
execute("cmd stop-route");
execute("cmd start-route");
checkCommandOutputsPattern("get route",
checkCommandOutputsPattern("get route --wide-uri",
"route1\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started.*\\n.*route2\\s+timer:\\/\\/(yaml|java)\\?period=1000\\s+Started",
ASSERTION_WAIT_SECONDS);
}
Expand Down
Loading