api/etcdhttp: change /health type back to string for backwards compatibility

This commit is contained in:
Jordan Liggitt
2018-01-15 01:49:59 -05:00
parent 7a8c192c8f
commit f77e54eb13
7 changed files with 20 additions and 17 deletions

View File

@ -53,7 +53,7 @@ func alarmTest(cx ctlCtx) {
}
// '/health' handler should return 'false'
if err := cURLGet(cx.epc, cURLReq{endpoint: "/health", expected: `{"health":false,"errors":["NOSPACE"]}`}); err != nil {
if err := cURLGet(cx.epc, cURLReq{endpoint: "/health", expected: `{"health":"false","errors":["NOSPACE"]}`}); err != nil {
cx.t.Fatalf("failed get with curl (%v)", err)
}