summaryrefslogtreecommitdiffstats
path: root/django/sp_sso/saml/tests.py
blob: 8134addd8bcb4ed5a56cdbe8bf1220d95e0c3bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from django.test import TestCase
from .utils import ldap_init, wcs

import requests

# Create your tests here.
class ServicesTestCase(TestCase):
    """Ensure that all four services are up and running."""
    def test_ldap_connection(self):
        l = ldap_init()
        self.assertTrue(l)

    def test_wcs_connection(self):
        response = requests.get(wcs)
        self.assertEqual(response.status_code, 200)

    def test_passerelle_connection(self):
        response = requests.get('http://dir-condorcet.dev.entrouvert.org')
        self.assertEqual(response.status_code, 200)

    def test_authentic_connection(self):
        response = requests.get('http://idp-condorcet.dev.entrouvert.org')
        self.assertEqual(response.status_code, 200)