diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-10 09:47:10 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-10 09:47:10 +0000 |
| commit | 205fd32c7a464ff4cb29722dcd9dc0c8041f26cd (patch) | |
| tree | 43c0fda8e71e306586a34d4964efbe7d93910fe2 /tests/integration/saml2 | |
| parent | c869dcf749faf0e2e45513a1b521026215354402 (diff) | |
| download | lasso-205fd32c7a464ff4cb29722dcd9dc0c8041f26cd.tar.gz lasso-205fd32c7a464ff4cb29722dcd9dc0c8041f26cd.tar.xz lasso-205fd32c7a464ff4cb29722dcd9dc0c8041f26cd.zip | |
added defederation tests
Diffstat (limited to 'tests/integration/saml2')
| -rw-r--r-- | tests/integration/saml2/test_03_defederation.py | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/integration/saml2/test_03_defederation.py b/tests/integration/saml2/test_03_defederation.py new file mode 100644 index 00000000..9c48c242 --- /dev/null +++ b/tests/integration/saml2/test_03_defederation.py @@ -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' +''') + + + |
