added defederation tests

This commit is contained in:
Frédéric Péters 2008-04-10 09:47:10 +00:00
parent c869dcf749
commit 205fd32c7a
1 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,59 @@
import twill
def test_sso_defederate_initiated_by_sp_redirect():
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
submit fedterm-redirect
url http://localhost:10002
find 'Log on'
go http://localhost:10001
save_html /tmp/a.html
find 'Local Logout'
''')
def test_sso_defederate_initiated_by_sp_soap():
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
submit fedterm-soap
url http://localhost:10002
find 'Log on'
go http://localhost:10001
save_html /tmp/b.html
find 'Local Logout'
''')
def test_sso_defederate_then_slo():
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
submit fedterm-soap
url http://localhost:10002
find 'Log on'
go http://localhost:10001
fv 2 binding SOAP
fv 2 slo 'Single Logout'
submit 'Single Logout'
url http://localhost:10001
find 'Log in'
''')