Skip to content

Commit

Permalink
PIN-3996 Resolved PR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nttdata-rtorsoli committed Sep 29, 2023
1 parent eddb376 commit 706f1d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ object ResponseHandlers extends AkkaResponses {
case Failure(ex: OperationForbidden.type) => forbidden(ex, logMessage)
case Failure(ex: EServiceNotFound) => notFound(ex, logMessage)
case Failure(ex: EServiceDescriptorNotFound) => notFound(ex, logMessage)
case Failure(ex: TenantNotFound) => notFound(ex, logMessage)
case Failure(ex: TenantKindNotFound) => notFound(ex, logMessage)
case Failure(ex: EServiceDescriptorWithoutInterface) => badRequest(ex, logMessage)
case Failure(ex: EServiceRiskAnalysisIsRequired) => badRequest(ex, logMessage)
case Failure(ex: RiskAnalysisNotValid.type) => badRequest(ex, logMessage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1232,10 +1232,7 @@ class CatalogProcessSpec extends SpecHelper with AnyWordSpecLike with ScalatestR
SpecData.catalogItem.id.toString,
SpecData.catalogDescriptor.id.toString
) ~> check {
status shouldEqual StatusCodes.NotFound
val problem = responseAs[Problem]
problem.status shouldBe StatusCodes.NotFound.intValue
problem.errors.head.code shouldBe "009-0014"
status shouldEqual StatusCodes.InternalServerError
}
}
"fail if mode is Receive and Risk Analysis did not pass validation" in {
Expand Down

0 comments on commit 706f1d1

Please sign in to comment.