summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/integration/saml2/test_03_defederation.py59
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'
+''')
+
+
+