Skip to content

Commit cf4f699

Browse files
BB2-1110: Fix for issue discovered during deployment of r165/r166. En… (#1411)
* BB2-1110: Fix for issue discovered during deployment of r165/r166. Ensure /health still returns a 200 * Remove print
1 parent d740668 commit cf4f699

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

apps/health/urls.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.urls import re_path
1+
from django.urls import path, re_path
22
from .views import (
33
CheckBFD,
44
CheckDB,
@@ -9,11 +9,12 @@
99

1010

1111
urlpatterns = [
12-
re_path(r"external/?$", CheckExternal.as_view()),
13-
re_path(r"external_v2/?$", CheckExternal.as_view()),
14-
re_path(r"sls/?$", CheckSLSX.as_view()),
15-
re_path(r"db/?$", CheckDB.as_view()),
16-
re_path(r"bfd/?$", CheckBFD.as_view()),
17-
re_path(r"bfd_v2/?$", CheckBFD.as_view()),
12+
re_path(r"/external/?$", CheckExternal.as_view()),
13+
re_path(r"/external_v2/?$", CheckExternal.as_view()),
14+
re_path(r"/sls/?$", CheckSLSX.as_view()),
15+
re_path(r"/db/?$", CheckDB.as_view()),
16+
re_path(r"/bfd/?$", CheckBFD.as_view()),
17+
re_path(r"/bfd_v2/?$", CheckBFD.as_view()),
1818
re_path(r"^$", CheckInternal.as_view()),
19+
path("/", CheckInternal.as_view()),
1920
]

apps/integration_tests/integration_test_fhir_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _stats_resource_by_type(self, bundle_json, cur_stats_dict, schema=None):
166166
def test_health_endpoint(self):
167167
client = APIClient()
168168
# no authenticate needed
169-
response = client.get(self.live_server_url + "/health/")
169+
response = client.get(self.live_server_url + "/health")
170170
self.assertEqual(response.status_code, 200)
171171
content = json.loads(response.content)
172172
msg = None

hhs_oauth_server/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def robots_txt(request):
3333

3434

3535
urlpatterns_unversioned = [
36-
path("health/", include("apps.health.urls")),
36+
path("health", include("apps.health.urls")),
3737
path("docs/", include("apps.docs.urls")),
3838
re_path(r"^" + ADMIN_REDIRECTOR + "admin/metrics/", include("apps.metrics.urls")),
3939
re_path(r"^" + ADMIN_REDIRECTOR + "admin/", admin.site.urls),

0 commit comments

Comments
 (0)