mirror of https://github.com/status-im/consul.git
Transition all endpoint tests in agent_endpoint_test.go to go through ServeHTTP (#11499)
This commit is contained in:
parent
205ce9a69d
commit
0a9621ec7a
|
@ -1005,7 +1005,7 @@ func (s *HTTPHandlers) AgentHealthServiceByID(resp http.ResponseWriter, req *htt
|
||||||
}
|
}
|
||||||
notFoundReason := fmt.Sprintf("ServiceId %s not found", sid.String())
|
notFoundReason := fmt.Sprintf("ServiceId %s not found", sid.String())
|
||||||
if returnTextPlain(req) {
|
if returnTextPlain(req) {
|
||||||
return notFoundReason, CodeWithPayloadError{StatusCode: http.StatusNotFound, Reason: notFoundReason, ContentType: "application/json"}
|
return notFoundReason, CodeWithPayloadError{StatusCode: http.StatusNotFound, Reason: notFoundReason, ContentType: "text/plain"}
|
||||||
}
|
}
|
||||||
return &api.AgentServiceChecksInfo{
|
return &api.AgentServiceChecksInfo{
|
||||||
AggregatedStatus: api.HealthCritical,
|
AggregatedStatus: api.HealthCritical,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue