blob: 04f396d3740e3d0a7ef378ef8483afa4c4165e1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
import twill
def test_sso_default():
twill.commands.reset_browser()
twill.execute_string('''
go http://localhost:10002
submit
fv 1 username fred
fv 1 password fred
submit
url http://localhost:10002
find 'Logged in'
''')
def test_sso_post():
twill.commands.reset_browser()
twill.execute_string('''
go http://localhost:10002
fv 1 binding POST
submit
fv 1 username fred
fv 1 password fred
submit
find 'You should be automaticaly'
submit
url http://localhost:10002
find 'Logged in'
''')
def test_sso_idp_initiated():
twill.commands.reset_browser()
twill.execute_string('''
go http://localhost:10001
fv 1 username fred
fv 1 password fred
submit
fv 1 sp http-localhost-10002-saml-metadata
submit sso
url http://localhost:10002
find 'Logged in'
''')
def test_sso_ispassive():
twill.commands.reset_browser()
twill.execute_string('''
go http://localhost:10002
fv 1 is_passive true
submit
url http://localhost:10002
find 'Authentication failure'
''')
|