-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message when entity is not found
- Loading branch information
Showing
34 changed files
with
148 additions
and
134 deletions.
There are no files selected for viewing
Submodule ScalliGraph
updated
1 files
+4 −2 | core/src/main/scala/org/thp/scalligraph/steps/StepsOps.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
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
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ class JobSrvTest extends PlaySpecification with TestAppBuilder { | |
|
||
val createdJobTry = app[Database].tryTransaction { implicit graph => | ||
for { | ||
observable <- app[ObservableSrv].initSteps.has("message", "hello world").getOrFail() | ||
observable <- app[ObservableSrv].initSteps.has("message", "hello world").getOrFail("Observable") | ||
createdJob <- app[JobSrv].create(job, observable) | ||
} yield createdJob | ||
} | ||
|
@@ -71,9 +71,9 @@ class JobSrvTest extends PlaySpecification with TestAppBuilder { | |
} | ||
|
||
for { | ||
audit <- app[AuditSrv].initSteps.has("objectId", updatedJob._id).getOrFail() | ||
organisation <- app[OrganisationSrv].get("cert").getOrFail() | ||
user <- app[UserSrv].initSteps.getByName("[email protected]").getOrFail() | ||
audit <- app[AuditSrv].initSteps.has("objectId", updatedJob._id).getOrFail("Audit") | ||
organisation <- app[OrganisationSrv].get("cert").getOrFail("Organisation") | ||
user <- app[UserSrv].initSteps.getByName("[email protected]").getOrFail("User") | ||
} yield new JobFinished().filter(audit, Some(updatedJob), organisation, Some(user)) | ||
} must beASuccessfulTry(true) | ||
} | ||
|
@@ -82,7 +82,7 @@ class JobSrvTest extends PlaySpecification with TestAppBuilder { | |
"submit a job" in testApp { app => | ||
val x = for { | ||
observable <- app[Database].roTransaction { implicit graph => | ||
app[ObservableSrv].initSteps.has("message", "Some weird domain").richObservable.getOrFail() | ||
app[ObservableSrv].initSteps.has("message", "Some weird domain").richObservable.getOrFail("Observable") | ||
} | ||
case0 <- app[Database].roTransaction { implicit graph => | ||
app[CaseSrv].getOrFail("#1") | ||
|
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
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
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
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
Oops, something went wrong.