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()
Exemple #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_*')
Exemple #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()
Exemple #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
Exemple #5
0
 def tearDown(self):
     dhcpRecord = DhcpInfoRecord()
     dhcpRecord.deleteAll()
     stop_test_redis()
Exemple #6
0
 def tearDownClass(cls):
     stop_test_redis()
     for key in Mcast.McastDb.keys():
         Mcast.McastDb[key].close()
 def tearDown(self):
     # clear db records
     rec = IpNettophyRec()
     rec.delete_all()
     stop_test_redis()
Exemple #8
0
 def tearDownClass(cls):
     for conn in L2tpConnection.ConnectionDb.values():
         conn.CloseConnection()
     stop_test_redis()
Exemple #9
0
 def tearDown(self):
     # clear db records
     rec = RpdEnetRec()
     rec.delete_all()
     stop_test_redis()
Exemple #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()
Exemple #11
0
 def tearDown(self):
     self.process.cleanup()
     stop_test_redis()
Exemple #12
0
 def tearDownClass(cls):
     stop_test_redis()
     L2tpv3GlobalSettings.Dispatcher.request_unregister(
         {"unregType": "localaddress", "value": cls.conn_address})
     pass
Exemple #13
0
 def tearDown(self):
     CCAPCoreOrchestrator.NO_PRINCIPAL_CORE_FOUND_TIMEOUT = 60
     CCAPCore.ccap_core_db = {}
     ManagerProcess.SYSTEM_TIME_CONFIRM = "None"
     stop_test_redis()
Exemple #14
0
 def tearDownClass(cls):
     cls.conn.CloseConnection()
     for key in Mcast.McastDb.keys():
         Mcast.McastDb.pop(key)
     stop_test_redis()
 def tearDownClass(cls):
     if cls.hal_client.pushSock:
         cls.hal_client.pushSock.close()
     del cls.hal_client
     stop_test_redis()
Exemple #16
0
 def tearDownClass(cls):
     # clear db records
     sessRec = DepiMcastSessionRecord()
     sessRec.delete_all()
     stop_test_redis()
Exemple #17
0
 def tearDown(self):
     sessRecord = L2tpSessionRecord()
     sessRecord.deleteAll()
     stop_test_redis()
 def tearDown(self):
     stop_test_redis()
Exemple #19
0
 def tearDownClass(cls):
     cls.conn.CloseConnection()
     cls.conn.transport.network.close()
     L2tpv3GlobalSettings.Dispatcher._unregister_local_address(
         cls.conn_address)
     stop_test_redis()