forked from d2iq-archive/marathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fixes/d2iq-archive#4948/lazy_event_parsing
- Loading branch information
Showing
8 changed files
with
116 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env groovy | ||
|
||
node { | ||
properties([ | ||
parameters([ | ||
stringParam( | ||
description: 'Sets Marathn endpoint.', | ||
name: 'marathonUrl' | ||
) | ||
]) | ||
]) | ||
|
||
stage("Connect to CCM Cluster") { | ||
println params.marathonUrl | ||
} | ||
|
||
stage("Run Scale Tests"){} | ||
|
||
stage("Archive Results"){} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
package mesosphere.marathon.api.v2 | ||
package mesosphere.marathon | ||
package api.v2 | ||
|
||
import java.net._ | ||
|
||
|
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
19 changes: 19 additions & 0 deletions
19
src/test/scala/mesosphere/marathon/api/v2/ValidationTest.scala
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,19 @@ | ||
package mesosphere.marathon | ||
package api.v2 | ||
|
||
import mesosphere.UnitTest | ||
import com.wix.accord.{Failure, RuleViolation} | ||
import play.api.libs.json._ | ||
|
||
class ValidationTest extends UnitTest { | ||
import Validation._ | ||
|
||
"The failure format" should { | ||
"write validations errors" in { | ||
val violation = RuleViolation(value = Some("foo"), constraint = "is a number", description = Some("id")) | ||
val failure = Failure(Set(violation)) | ||
val json = Json.toJson(failure) | ||
json.toString should be("""{"message":"Object is not valid","details":[{"path":"/id","errors":["is a number"]}]}""") | ||
} | ||
} | ||
} |
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
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