Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Fix group ID
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth committed Dec 4, 2018
1 parent bf2370d commit 36f3494
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "gui-state-machine-api"

organization := "retest"
organization := "de.retest"

scalaVersion := "2.12.7"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class GuiStateMachineService(api: GuiStateMachineApi) extends Directives with De
val app = api.getStateMachine(Id(id))
app match {
case Some(x) =>
entity(as[GetStateBody]) { body => complete(x.getState(body.descriptors, body.neverExploredActions))
entity(as[GetStateBody]) { body =>
complete(x.getState(body.descriptors, body.neverExploredActions))
}
case None => complete(StatusCodes.NotFound)
}
Expand All @@ -86,7 +87,8 @@ class GuiStateMachineService(api: GuiStateMachineApi) extends Directives with De
val app = api.getStateMachine(Id(id))
app match {
case Some(x) =>
entity(as[ExecuteActionBody]) { body => complete(x.executeAction(body.from, body.a, body.descriptors, body.neverExploredActions))
entity(as[ExecuteActionBody]) { body =>
complete(x.executeAction(body.from, body.a, body.descriptors, body.neverExploredActions))
}
case None => complete(StatusCodes.NotFound)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ object WebServer extends App with RestService {
val parser = new OptionParser[Config]("gui-state-machine") {
head("gui-state-machine-api", "1.0")

opt[Long]('t', "maxtime") action { (x, c) => c.copy(maxtime = x)
opt[Long]('t', "maxtime") action { (x, c) =>
c.copy(maxtime = x)
} text ("maxtime specifies the maximum up time for the HTTP server in ms. This option can be helpful to run tests over a specific period of time.")

help("help").text("prints this usage text")
Expand Down

0 comments on commit 36f3494

Please sign in to comment.