def tearDownClass(cls): if StatsTest._check_skip_test() is True: return mockcassandra.stop_cassandra(cls.cassandra_port) mockredis.stop_redis(cls.redis_port) pass
def cleanUp(self): super(AnalyticsFixture, self).cleanUp() rcode = 0 if self.opserver_port is not None: self.qeproc.terminate() (qe_out, qe_err) = self.qeproc.communicate() rcode = self.qeproc.returncode self.logger.info('qed returned %d' % rcode) self.logger.info('qed terminated stdout: %s' % qe_out) self.logger.info('qed terminated stderr: %s' % qe_err) subprocess.call(['rm', '/tmp/qed.messages.' + str(self.listen_port)]) self.opproc.terminate() (op_out, op_err) = self.opproc.communicate() ocode = self.opproc.returncode self.logger.info('op returned %d' % ocode) self.logger.info('op terminated stdout: %s' % op_out) self.logger.info('op terminated stderr: %s' % op_err) subprocess.call(['rm', '/tmp/opserver.messages.' + str(self.listen_port)]) self.proc.terminate() subprocess.call(['rm', '/tmp/vizd.messages.' + str(self.listen_port)]) mockredis.stop_redis(self.redis_port) mockredis.stop_redis(self.redis_query_port) mockredis.stop_redis_sentinel(self.redis_sentinel_port) assert(rcode == 0)
def tearDownClass(cls): if AnalyticsDbTest._check_skip_test() is True: return mockcassandra.stop_cassandra(cls.cassandra_port) mockredis.stop_redis(cls.redis_port) mockredis.stop_redis(cls.redis_password_port, password='******') pass
def tearDownClass(cls): if AnalyticsUveTest._check_skip_test() is True: return mockredis.stop_redis(cls.redis_port) mockzoo.stop_zoo(cls.zk_port)
def stop(self): if self.running: mockredis.stop_redis(self.port) self.running = False
def tearDownClass(cls): mockcassandra.stop_cassandra(cls.cassandra_port) mockredis.stop_redis(cls.redis_port)