mirror of https://github.com/apache/superset.git
Added /healthcheck endpoint for integrations with envoy (#3819)
* fixed mergeconflicts * fixed mergeconflicts forreal this time * added healthcheck test
This commit is contained in:
parent
9500f0aae3
commit
ae8b249dc2
|
@ -582,6 +582,9 @@ appbuilder.add_view(
|
||||||
def health():
|
def health():
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
|
@app.route('/healthcheck')
|
||||||
|
def healthcheck():
|
||||||
|
return "OK"
|
||||||
|
|
||||||
@app.route('/ping')
|
@app.route('/ping')
|
||||||
def ping():
|
def ping():
|
||||||
|
|
|
@ -271,6 +271,7 @@ class CoreTests(SupersetTestCase):
|
||||||
|
|
||||||
def test_misc(self):
|
def test_misc(self):
|
||||||
assert self.get_resp('/health') == "OK"
|
assert self.get_resp('/health') == "OK"
|
||||||
|
assert self.get_resp('/healthcheck') == "OK"
|
||||||
assert self.get_resp('/ping') == "OK"
|
assert self.get_resp('/ping') == "OK"
|
||||||
|
|
||||||
def test_testconn(self, username='admin'):
|
def test_testconn(self, username='admin'):
|
||||||
|
|
Loading…
Reference in New Issue