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

Commit

Permalink
Use correct repos for retest
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth committed Dec 4, 2018
1 parent 6665e1f commit bf2370d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 8 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ mainClass in (Compile, packageBin) := Some("de.retest.guistatemachine.rest.WebSe
// format the code
scalafmtOnCompile := true

publishTo := Some("ReTest Nexus" at "https://nexus.retest.org/repository/all/")
// https://nexus.retest.org/repository/all/
publishTo := {
val nexus = "https://nexus.retest.org/repository/"
if (isSnapshot.value)
Some("snapshots" at nexus + "retest-snapshot")
else
Some("releases" at nexus + "retest")
}

/*
publishTo := {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ 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 @@ -87,8 +86,7 @@ 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,8 +23,7 @@ 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 bf2370d

Please sign in to comment.