Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test/bakery): Mock http errors using SpinnakerHttpException in Co…
…mpletedBakeTaskSpec (#4711) With the introduction of the commit: e63a661 , the expected behaviour of all BakeryService APIs is to throw Spinnaker*Exception when any http error has occurred. - CompletedBakeTask is invoking an API : lookupBake(region, bakeid) -https://github.com/spinnaker/orca/blob/d2f50242637207491ba9fdcc40eaf02c3255c447/orca-bakery/src/main/groovy/com/netflix/spinnaker/orca/bakery/tasks/CompletedBakeTask.groovy#L43. This API error response is mocked up with RetrofitError in the test : https://github.com/spinnaker/orca/blob/d2f50242637207491ba9fdcc40eaf02c3255c447/orca-bakery/src/test/groovy/com/netflix/spinnaker/orca/bakery/tasks/CompletedBakeTaskSpec.groovy#L84 - This test case seems to be invalid/irrelevant because it has to throw SpinnakerHttpException here. This commit aims at correcting this unexpected behaviour. Co-authored-by: Pranav-b-7 <[email protected]>
- Loading branch information