superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Added /healthcheck endpoint for integrations with envoy (#3819)
Date Fri, 10 Nov 2017 04:23:30 GMT
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 <hughmil3s@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" <commits@superset.apache.org>'].

Mime
View raw message