Added /healthcheck endpoint for integrations with envoy (#3819)

* fixed mergeconflicts

* fixed mergeconflicts forreal this time

* added healthcheck test
This commit is contained in:
Hugh A. Miles II 2017-11-09 20:23:28 -08:00 committed by Maxime Beauchemin
parent 9500f0aae3
commit ae8b249dc2
2 changed files with 4 additions and 0 deletions

View File

@ -582,6 +582,9 @@ appbuilder.add_view(
def health():
return "OK"
@app.route('/healthcheck')
def healthcheck():
return "OK"
@app.route('/ping')
def ping():

View File

@ -271,6 +271,7 @@ class CoreTests(SupersetTestCase):
def test_misc(self):
assert self.get_resp('/health') == "OK"
assert self.get_resp('/healthcheck') == "OK"
assert self.get_resp('/ping') == "OK"
def test_testconn(self, username='admin'):