Commit ef0f606b authored by Rafael Monnerat's avatar Rafael Monnerat

Added a basic test for isSingleSignOnEnabled.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39987 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c70e11e
...@@ -117,6 +117,7 @@ class TestERP5RemoteUserManager(ERP5TypeTestCase): ...@@ -117,6 +117,7 @@ class TestERP5RemoteUserManager(ERP5TypeTestCase):
self.password = self.login + 'password' self.password = self.login + 'password'
self.portal = self.getPortalObject() self.portal = self.getPortalObject()
self.createDummyWitchTool() self.createDummyWitchTool()
self.was_sso_enable = self.portal.portal_wizard.isSingleSignOnEnabled()
self.setUpRemoteUserManager() self.setUpRemoteUserManager()
self.person_module = self.portal.person_module self.person_module = self.portal.person_module
acl_users = self.portal.acl_users acl_users = self.portal.acl_users
...@@ -395,6 +396,14 @@ class TestERP5RemoteUserManager(ERP5TypeTestCase): ...@@ -395,6 +396,14 @@ class TestERP5RemoteUserManager(ERP5TypeTestCase):
self.assertFalse(self.login in \ self.assertFalse(self.login in \
self.erp5_remote_manager.remote_authentication_cache) self.erp5_remote_manager.remote_authentication_cache)
def test_is_single_sign_on_enable(self):
""" Check if isSingleSignOn is Enabled """
self.assertTrue(self.portal.portal_wizard.isSingleSignOnEnabled())
# Make sure single_sign_on_enable was not enabled before
# start the setup was made.
self.assertFalse(self.was_sso_enable)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5RemoteUserManager)) suite.addTest(unittest.makeSuite(TestERP5RemoteUserManager))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment