authentik.root.tests.test_views
root tests
1"""root tests""" 2 3from django.test import TransactionTestCase 4from django.urls import reverse 5 6 7class TestRoot(TransactionTestCase): 8 """Test root application""" 9 10 def test_monitoring(self): 11 """Test monitoring with credentials""" 12 self.assertEqual(self.client.get(reverse("metrics")).status_code, 200) 13 14 def test_monitoring_live(self): 15 """Test LiveView""" 16 self.assertEqual(self.client.get(reverse("health-live")).status_code, 200) 17 18 def test_monitoring_ready(self): 19 """Test ReadyView""" 20 self.assertEqual(self.client.get(reverse("health-ready")).status_code, 200)
class
TestRoot(django.test.testcases.TransactionTestCase):
8class TestRoot(TransactionTestCase): 9 """Test root application""" 10 11 def test_monitoring(self): 12 """Test monitoring with credentials""" 13 self.assertEqual(self.client.get(reverse("metrics")).status_code, 200) 14 15 def test_monitoring_live(self): 16 """Test LiveView""" 17 self.assertEqual(self.client.get(reverse("health-live")).status_code, 200) 18 19 def test_monitoring_ready(self): 20 """Test ReadyView""" 21 self.assertEqual(self.client.get(reverse("health-ready")).status_code, 200)
Test root application
def
test_monitoring(self):
11 def test_monitoring(self): 12 """Test monitoring with credentials""" 13 self.assertEqual(self.client.get(reverse("metrics")).status_code, 200)
Test monitoring with credentials