Ejemplo n.º 1
0
 def tearDownClass(cls):
     for process in [cls.test_killer]:
         process.terminate()
         process.join()
     stop_events_device()
Ejemplo n.º 2
0
 def tearDownClass(cls):
     stop_events_device()
Ejemplo n.º 3
0
def events():
    temp_dir = tempfile.mkdtemp()
    start_events_device(temp_dir)
    yield EventsLogUtils(temp_dir=temp_dir)

    stop_events_device()
Ejemplo n.º 4
0
 def tearDownClass(cls):
     stop_events_device()
     shutil.rmtree(cls.temp_dir)
Ejemplo n.º 5
0
 def stop(self):
     super().stop()
     stop_events_device()
Ejemplo n.º 6
0
 def stop(self, timeout=None):
     super().stop(timeout)
     stop_events_device()
 def tearDownClass(cls):
     cls.grafana_annotator.set_grafana_url(grafana_base_url='')
     for t in [cls.event_logger, cls.prometheus_dumper, cls.grafana_annotator, cls.test_killer]:
         t.terminate()
         t.join()
     stop_events_device()