mistercrunch closed pull request #3819: Added /healthcheck endpoint for 
integrations with envoy
URL: https://github.com/apache/incubator-superset/pull/3819
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/superset/views/core.py b/superset/views/core.py
index ab2e3d434e..8fd4d74cab 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -582,6 +582,9 @@ class LogModelView(SupersetModelView):
 def health():
     return "OK"
 
[email protected]('/healthcheck')
+def healthcheck():
+    return "OK"
 
 @app.route('/ping')
 def ping():
diff --git a/tests/core_tests.py b/tests/core_tests.py
index c7c2ff9a16..75c9871adc 100644
--- a/tests/core_tests.py
+++ b/tests/core_tests.py
@@ -271,6 +271,7 @@ def test_doctests(self):
 
     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'):


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to