Skip to content

Commit

Permalink
Address feedback, remove openrose service health check
Browse files Browse the repository at this point in the history
  • Loading branch information
bufke committed Aug 6, 2024
1 parent 114a8a0 commit 078b971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 0 additions & 13 deletions kobo/apps/openrosa/apps/main/tests/test_service_health_minimal.py

This file was deleted.

4 changes: 2 additions & 2 deletions kobo/apps/service_health/test_service_health_minimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@


class ServiceHealthMinimalTestCase(TestCase):
url = '/service_health/minimal/'
url = '/service_health/minimal/' # Path checked in middleware, can't use reverse

@override_settings(ALLOWED_HOSTS=['nope'])
def test_service_health_minimal(self):
"""
Test for endpoint which makes no connections to databases or other external
services, ingores ALLOWED_HOSTS, and is helpful for HTTP health checks.
services, ignores ALLOWED_HOSTS, and is helpful for HTTP health checks.
"""
with self.assertNumQueries(0):
res = self.client.get(self.url)
Expand Down

0 comments on commit 078b971

Please sign in to comment.