• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dgraph-io / dgraph / 5400190070
66%

Build:
DEFAULT BRANCH: main
Ran 28 Jun 2023 11:40AM UTC
Jobs 1
Files 250
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jun 2023 10:45AM UTC coverage: 66.672% (-0.4%) from 67.026%
5400190070

push

web-flow
fix(zero): fix zero's health endpoint to return json response (#8858)

Fixes #5517 Zero's /health endpoint just returns OK unlike Alpha's JSON
output.

## Problem
curl http://alpha-hostname:alpha-http-port/health returns a JSON output
whereas, curl http://zero-hostname:zero-http-port/health returns a plain
text "OK".

## Solution
Added code to return a plain text output ("OK") for the "text/plain" to
maintain the backward compatibility and return JSON output for "Accept:
application/json" header.

Example Output:
$ curl http://localhost:58696/health
OK

$ curl -H "Accept: application/json" http://localhost:58696/health

{"instance":"zero","address":"zero1:5080","status":"healthy","version":"v23.0.0-16-g90139243f","uptime":9223372036,"lastEcho":1686137664}

46 of 46 new or added lines in 1 file covered. (100.0%)

57901 of 86845 relevant lines covered (66.67%)

2241641.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5400190070.1 28 Jun 2023 11:40AM UTC 0
66.67
Source Files on build 5400190070
Detailed source file information is not available for this build.
  • Back to Repo
  • 973efa3e on github
  • Prev Build on main (#5387000222)
  • Next Build on main (#5442631227)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc