Exemple #1
0
    def setUp(self):
        '''
        This sets up all the resolvers and realms
        '''
        self.delete_all_policies()
        self.delete_all_token()
        self.delete_all_realms()
        self.delete_all_resolvers()

        self.serials = ['sms01', 'sms02']
        self.max = 22
        for num in range(3, self.max):
            serial = "sms%02d" % num
            self.serials.append(serial)

        TestSpecialController.setUp(self)
        # self.set_config_selftest()
        self.create_common_resolvers()
        self.create_common_realms()

        self.initTokens()
        self.initProvider()

        self.sms_url = ("http://localhost:%s/testing/http2sms" %
                        self.paster_port)
Exemple #2
0
    def setUp(self):
        '''
        This sets up all the resolvers and realms
        '''
        TestSpecialController.setUp(self)
        self.create_common_resolvers()
        self.create_common_realms()

        if hasattr(self, "policies") is False:
            setattr(self, "policies", [])

        if hasattr(self, "serials") is False:
            setattr(self, "serials", [])

        self.patch_smtp = None
        self.patch_sms = None

        self.delete_all_token()
        self.delete_all_policies()

        self.remote_url = "http://127.0.0.1:%s" % self.paster_port
        self.sms_url = ("http://localhost:%s/testing/http2sms" %
                        self.paster_port)
        self.radius_url = 'localhost:%s' % self.radius_authport,
        return
Exemple #3
0
    def tearDown(self):
        self.delete_all_policies()
        self.delete_all_token()
        self.delete_all_realms()
        self.delete_all_resolvers()

        TestSpecialController.tearDown(self)
Exemple #4
0
    def setUp(self):
        '''
        This sets up all the resolvers and realms
        '''
        self.delete_all_policies()
        self.delete_all_token()
        self.delete_all_realms()
        self.delete_all_resolvers()

        self.serials = ['sms01', 'sms02']
        self.max = 22
        for num in range(3, self.max):
            serial = "sms%02d" % num
            self.serials.append(serial)

        TestSpecialController.setUp(self)
        # self.set_config_selftest()
        self.create_common_resolvers()
        self.create_common_realms()

        self.initTokens()
        self.initProvider()

        self.sms_url = ("http://localhost:%s/testing/http2sms" %
                        self.paster_port)
Exemple #5
0
    def setUp(self):
        '''
        This sets up all the resolvers and realms
        '''
        TestSpecialController.setUp(self)
        self.create_common_resolvers()
        self.create_common_realms()

        if hasattr(self, "policies") is False:
            setattr(self, "policies", [])

        if hasattr(self, "serials") is False:
            setattr(self, "serials", [])

        self.patch_smtp = None
        self.patch_sms = None

        self.delete_all_token()
        self.delete_all_policies()

        self.remote_url = "http://127.0.0.1:%s" % self.paster_port
        self.sms_url = ("http://localhost:%s/testing/http2sms" %
                        self.paster_port)
        self.radius_url = 'localhost:%s' % self.radius_authport,
        return
    def tearDown(self):
        self.delete_all_policies()
        self.delete_all_token()
        self.delete_all_realms()
        self.delete_all_resolvers()

        TestSpecialController.tearDown(self)
Exemple #7
0
    def setUp(self):
        '''
        This sets up all the resolvers and realms
        '''
        TestSpecialController.setUp(self)

        self.create_common_resolvers()
        self.create_common_realms()
    def setUp(self):
        '''
        This sets up all the resolvers and realms
        '''
        TestSpecialController.setUp(self)

        self.create_common_resolvers()
        self.create_common_realms()
    def setUp(self):
        '''
        Overwrite the deleting of the realms!

        If the realms are deleted also the table TokenRealm gets deleted
        and we loose the information how many tokens are within a realm!
        '''
        TestSpecialController.setUp(self)
        self.set_config_selftest()
        self.remote_url = 'http://127.0.0.1:%s' % self.paster_port
        return
Exemple #10
0
    def tearDown(self):

        if self.patch_smtp is not None:
            self.patch_smtp.stop()
        if self.patch_sms is not None:
            self.patch_sms.stop()

        self.delete_all_token()
        self.delete_all_realms()
        self.delete_all_resolvers()
        TestSpecialController.tearDown(self)
Exemple #11
0
    def tearDown(self):

        if self.patch_smtp is not None:
            self.patch_smtp.stop()
        if self.patch_sms is not None:
            self.patch_sms.stop()

        self.delete_all_token()
        self.delete_all_realms()
        self.delete_all_resolvers()
        TestSpecialController.tearDown(self)
    def setUp(self):
        '''
        Overwrite the deleting of the realms!

        If the realms are deleted also the table TokenRealm gets deleted
        and we loose the information how many tokens are within a realm!
        '''
        TestSpecialController.setUp(self)
        self.remote_url = 'http://127.0.0.1:%s' % self.paster_port

        self.delete_all_policies()
        self.delete_all_token()

        self.create_common_resolvers()
        self.create_common_realms()

        return
Exemple #13
0
    def setUp(self):
        '''
        Overwrite the deleting of the realms!

        If the realms are deleted also the table TokenRealm gets deleted
        and we loose the information how many tokens are within a realm!
        '''
        TestSpecialController.setUp(self)
        self.remote_url = 'http://127.0.0.1:%s' % self.paster_port

        self.delete_all_policies()
        self.delete_all_token()

        self.create_common_resolvers()
        self.create_common_realms()

        return
Exemple #14
0
 def setup_class(cls):
     cls.radius_proc = cls.start_radius_server(cls.radius_authport,
                                                  cls.radius_acctport)
     TestSpecialController.setup_class()
Exemple #15
0
 def tearDown(self):
     TestSpecialController.tearDown(self)
Exemple #16
0
 def teardown_class(cls):
     if cls.radius_proc:
         cls.stop_radius_server(cls.radius_proc)
     TestSpecialController.teardown_class()
Exemple #17
0
 def setup_class(cls):
     cls.radius_proc = cls.start_radius_server(cls.radius_authport,
                                               cls.radius_acctport)
     TestSpecialController.setup_class()
Exemple #18
0
 def tearDown(self):
     TestSpecialController.tearDown(self)
Exemple #19
0
 def teardown_class(cls):
     if cls.radius_proc:
         cls.stop_radius_server(cls.radius_proc)
     TestSpecialController.teardown_class()