Revision 462c7e47 api/tests_auth.py
b/api/tests_auth.py | ||
---|---|---|
13 | 13 |
fixtures = ['auth_test_data'] |
14 | 14 |
apibase = '/api/v1.0' |
15 | 15 |
|
16 |
|
|
17 |
|
|
18 | 16 |
def setUp(self): |
19 | 17 |
self.client = Client() |
20 | 18 |
|
21 | 19 |
def register_sibbolleth_user(self): |
22 | 20 |
""" test registration of sibboleth user upon new incoming request |
23 | 21 |
""" |
22 |
response = self.client.get( self.apibase + '/servers', {}, |
|
23 |
**{'X-givenName':'notme', |
|
24 |
'X-sn':'0xdeadbabe'}) |
|
24 | 25 |
|
25 | 26 |
|
26 | 27 |
def test_auth_sibbolleth(self): |
27 | 28 |
""" test whether the authentication mechanism sets the correct headers |
28 | 29 |
""" |
29 | 30 |
|
30 |
|
|
31 | 31 |
def test_auth_headers(self): |
32 | 32 |
""" test whether the authentication mechanism sets the correct headers |
33 | 33 |
""" |
Also available in: Unified diff