Skip to content

Commit

Permalink
Trying to find out why dredd is failing in Circle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandor Torok committed Mar 26, 2018
1 parent 27b5941 commit d2b9b03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _ft/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#For local testing only
FROM peteclarkft/ersatz:0.0.4

# UPP Suggestions Umbrella Mock
COPY ./ersatz-fixtures.yml /_ft/ersatz-fixtures.yml

WORKDIR /
CMD [ "/ersatz", "-p", "8080" ]
CMD [ "/ersatz" ]

5 changes: 4 additions & 1 deletion _ft/ersatz-fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: "1.0.0"
fixtures:
/_cluster/health/:
/:
head:
status: 200
/_cluster/health/ft:
get:
body:
cluster_name: "070529446553:upp-sapi-v1-k8s-dev"
Expand Down
1 change: 1 addition & 0 deletions healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func (service *healthService) HealthDetails(writer http.ResponseWriter, req *htt

output, err := service.esHealthService.getClusterHealth()
if err != nil {
logger.WithError(err).Error("Error while calling cluster health")
writer.WriteHeader(http.StatusInternalServerError)
return
}
Expand Down

0 comments on commit d2b9b03

Please sign in to comment.