Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/Platform/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
path("accounts/", include("accounts.urls", namespace="oauth2_provider")),
path("options/", include("options.urls", namespace="options")),
path("identity/", include("identity.urls", namespace="identity")),
path("healthcheck/", include("health.urls", namespace="healthcheck")),
path("health/", include("health.urls", namespace="health")),
path("s/", include("shortener.urls", namespace="shortener")),
path(
"openapi/",
Expand Down
5 changes: 0 additions & 5 deletions backend/health/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
from django.apps import AppConfig


class HealthConfig(AppConfig):
name = "health"
2 changes: 1 addition & 1 deletion backend/health/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
app_name = "health"

urlpatterns = [
path("backend/", HealthView.as_view(), name="backend"),
path("", HealthView.as_view(), name="health"),
]
2 changes: 1 addition & 1 deletion backend/tests/identity/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def setUp(self):
self.client = Client()

def test_health(self):
url = reverse("healthcheck:backend")
url = reverse("health:health")
resp = self.client.get(url)
self.assertEqual(resp.status_code, 200)
self.assertEqual(resp.json(), {"message": "OK"})
2 changes: 1 addition & 1 deletion k8s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class MyChart extends PennLabsChart {
"/openapi",
"/documentation",
"/Shibboleth.sso",
"/healthcheck",
"/health",
],
isSubdomain: true,
}],
Expand Down
Loading