Skip to content

Commit

Permalink
PIN-4435: fix publish descriptor response handler
Browse files Browse the repository at this point in the history
  • Loading branch information
beetlecrunch committed Jan 19, 2024
1 parent ea9ce7c commit 571fc34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ object ResponseHandlers extends AkkaResponses {
case Failure(ex: EServiceDescriptorWithoutInterface) => badRequest(ex, logMessage)
case Failure(ex: EServiceRiskAnalysisIsRequired) => badRequest(ex, logMessage)
case Failure(ex: RiskAnalysisNotValid.type) => badRequest(ex, logMessage)
case Failure(ex: NotValidDescriptor) => badRequest(ex, logMessage)
case Failure(ex) => internalServerError(ex, logMessage)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ class CatalogProcessSpec extends SpecHelper with AnyWordSpecLike with ScalatestR
SpecData.catalogItem.id.toString,
SpecData.catalogDescriptor.id.toString
) ~> check {
status shouldEqual StatusCodes.InternalServerError
status shouldEqual StatusCodes.BadRequest
}
}
"fail if EService does not exist" in {
Expand Down

0 comments on commit 571fc34

Please sign in to comment.