You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2017/11/10 04:23:30 UTC

[incubator-superset] branch master updated: Added /healthcheck endpoint for integrations with envoy (#3819)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ae8b249  Added /healthcheck endpoint for integrations with envoy (#3819)
ae8b249 is described below

commit ae8b249dc285e2214f230f8e7aa1150d6c83d3d5
Author: Hugh A. Miles II <hu...@gmail.com>
AuthorDate: Thu Nov 9 20:23:28 2017 -0800

    Added /healthcheck endpoint for integrations with envoy (#3819)
    
    * fixed mergeconflicts
    
    * fixed mergeconflicts forreal this time
    
    * added healthcheck test
---
 superset/views/core.py | 3 +++
 tests/core_tests.py    | 1 +
 2 files changed, 4 insertions(+)

diff --git a/superset/views/core.py b/superset/views/core.py
index 73daeac..19827b1 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -582,6 +582,9 @@ appbuilder.add_view(
 def health():
     return "OK"
 
+@app.route('/healthcheck')
+def healthcheck():
+    return "OK"
 
 @app.route('/ping')
 def ping():
diff --git a/tests/core_tests.py b/tests/core_tests.py
index c7c2ff9..75c9871 100644
--- a/tests/core_tests.py
+++ b/tests/core_tests.py
@@ -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'):

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <co...@superset.apache.org>'].