Пример #1
0
    def setUp(self):
        """
        Setup operations for saml configurations. these operations contain
        creation of SAMLConfiguration and SAMLProviderConfig records in database.
        """
        super(TestSAMLCommand, self).setUp()

        self.stdout = StringIO()

        # We are creating SAMLConfiguration instance here so that there is always at-least one
        # disabled saml configuration instance, this is done to verify that disabled configurations are
        # not processed.
        SAMLConfigurationFactory.create(enabled=False, site__domain='testserver.fake', site__name='testserver.fake')
        SAMLProviderConfigFactory.create(site__domain='testserver.fake', site__name='testserver.fake')
Пример #2
0
    def setUp(self):
        """
        Setup operations for saml configurations. these operations contain
        creation of SAMLConfiguration and SAMLProviderConfig records in database.
        """
        super(TestSAMLCommand, self).setUp()

        self.stdout = StringIO()

        # We are creating SAMLConfiguration instance here so that there is always at-least one
        # disabled saml configuration instance, this is done to verify that disabled configurations are
        # not processed.
        SAMLConfigurationFactory.create(enabled=False, site__domain='testserver.fake', site__name='testserver.fake')
        SAMLProviderConfigFactory.create(site__domain='testserver.fake', site__name='testserver.fake')
Пример #3
0
 def __create_saml_configurations__(self, saml_config=None, saml_provider_config=None):
     """
     Helper method to create SAMLConfiguration and AMLProviderConfig.
     """
     SAMLConfigurationFactory.create(enabled=True, **(
         saml_config or {
             'site__domain': 'testserver.fake',
             'site__name': 'testserver.fake'
         }
     ))
     SAMLProviderConfigFactory.create(enabled=True, **(
         saml_provider_config or {
             'site__domain': 'testserver.fake',
             'site__name': 'testserver.fake'
         }
     ))
Пример #4
0
 def __create_saml_configurations__(self, saml_config=None, saml_provider_config=None):
     """
     Helper method to create SAMLConfiguration and AMLProviderConfig.
     """
     SAMLConfigurationFactory.create(enabled=True, **(
         saml_config or {
             'site__domain': 'testserver.fake',
             'site__name': 'testserver.fake'
         }
     ))
     SAMLProviderConfigFactory.create(enabled=True, **(
         saml_provider_config or {
             'site__domain': 'testserver.fake',
             'site__name': 'testserver.fake'
         }
     ))
Пример #5
0
 def __create_saml_configurations__(self, saml_config=None, saml_provider_config=None):
     """
     Helper method to create SAMLConfiguration and AMLProviderConfig.
     """
     SAMLConfigurationFactory.create(enabled=True, **(saml_config or {}))
     SAMLProviderConfigFactory.create(enabled=True, **(saml_provider_config or {}))
Пример #6
0
 def __create_saml_configurations__(self, saml_config=None, saml_provider_config=None):
     """
     Helper method to create SAMLConfiguration and AMLProviderConfig.
     """
     SAMLConfigurationFactory.create(enabled=True, **(saml_config or {}))
     SAMLProviderConfigFactory.create(enabled=True, **(saml_provider_config or {}))