Пример #1
0
 def tearDown(self):
     self.l2tp_dispatcher._unregister_local_address(self.local_addr)
     for fd in self.l2tp_dispatcher.socketMapping.keys():
         trans_network = self.l2tp_dispatcher.socketMapping.pop(fd)
         # Close the socket
         trans_network.close()
     stop_test_redis()
Пример #2
0
 def tearDown(self):
     stop_test_redis()
     self.pid.send_signal(signal.SIGINT)
     self.pid.wait()
     self.pid = None
     self.stop_mastersim()
     os.system('rm -rf /tmp/ProcessAgent_AGENTTYPE_*')
Пример #3
0
 def tearDownClass(cls):
     stop_test_redis()
     if cls.rpdhostres.poller and cls.rpdhostres.mgrConnection:
         cls.rpdhostres.poller.unregister(
             cls.rpdhostres.mgrConnection.socket)
         cls.rpdhostres.poller.unregister(
             cls.rpdhostres.mgrConnection.monitor)
         cls.rpdhostres.mgrConnection.socket.disable_monitor()
         cls.rpdhostres.mgrConnection.monitor.close()
         cls.rpdhostres.mgrConnection.close()
Пример #4
0
    def tearDownClass(cls):

        if cls.crashCtrlHandler and cls.crashCtrlHandler.is_upload_process_alive():
            cls.crashCtrlHandler.stop_upload_process()

        if cls.halClient.pushSock:
            cls.halClient.pushSock.close()
        del cls.halClient
        if cls.tftp_pid:
            cls.tftp_pid.send_signal(signal.SIGINT)
            cls.tftp_pid.wait()
        stop_test_redis()
        subprocess.call(["killall", "python"])
        pass
Пример #5
0
 def tearDown(self):
     dhcpRecord = DhcpInfoRecord()
     dhcpRecord.deleteAll()
     stop_test_redis()
Пример #6
0
 def tearDownClass(cls):
     stop_test_redis()
     for key in Mcast.McastDb.keys():
         Mcast.McastDb[key].close()
Пример #7
0
 def tearDown(self):
     # clear db records
     rec = IpNettophyRec()
     rec.delete_all()
     stop_test_redis()
Пример #8
0
 def tearDownClass(cls):
     for conn in L2tpConnection.ConnectionDb.values():
         conn.CloseConnection()
     stop_test_redis()
Пример #9
0
 def tearDown(self):
     # clear db records
     rec = RpdEnetRec()
     rec.delete_all()
     stop_test_redis()
Пример #10
0
 def tearDownClass(cls):
     stop_test_redis()
     cls.api.transport.socket.unbind(cls.api.transport.path)
     for key in Mcast.McastDb.keys():
         if isinstance(Mcast.McastDb[key], Mcast):
             Mcast.McastDb[key].close()
Пример #11
0
 def tearDown(self):
     self.process.cleanup()
     stop_test_redis()
Пример #12
0
 def tearDownClass(cls):
     stop_test_redis()
     L2tpv3GlobalSettings.Dispatcher.request_unregister(
         {"unregType": "localaddress", "value": cls.conn_address})
     pass
Пример #13
0
 def tearDown(self):
     CCAPCoreOrchestrator.NO_PRINCIPAL_CORE_FOUND_TIMEOUT = 60
     CCAPCore.ccap_core_db = {}
     ManagerProcess.SYSTEM_TIME_CONFIRM = "None"
     stop_test_redis()
Пример #14
0
 def tearDownClass(cls):
     cls.conn.CloseConnection()
     for key in Mcast.McastDb.keys():
         Mcast.McastDb.pop(key)
     stop_test_redis()
Пример #15
0
 def tearDownClass(cls):
     if cls.hal_client.pushSock:
         cls.hal_client.pushSock.close()
     del cls.hal_client
     stop_test_redis()
Пример #16
0
 def tearDownClass(cls):
     # clear db records
     sessRec = DepiMcastSessionRecord()
     sessRec.delete_all()
     stop_test_redis()
Пример #17
0
 def tearDown(self):
     sessRecord = L2tpSessionRecord()
     sessRecord.deleteAll()
     stop_test_redis()
Пример #18
0
 def tearDown(self):
     stop_test_redis()
Пример #19
0
 def tearDownClass(cls):
     cls.conn.CloseConnection()
     cls.conn.transport.network.close()
     L2tpv3GlobalSettings.Dispatcher._unregister_local_address(
         cls.conn_address)
     stop_test_redis()