예제 #1
0
 def init_snuba(self):
     self.snuba_eventstream = SnubaEventStream()
     self.snuba_tagstore = SnubaTagStorage()
     assert all(
         response.status_code == 200
         for response in ThreadPoolExecutor(4).map(self.call_snuba, self.init_endpoints)
     )
예제 #2
0
파일: cases.py 프로젝트: ngandhy/sentry
 def init_snuba(self):
     self.snuba_eventstream = SnubaEventStream()
     self.snuba_tagstore = SnubaTagStorage()
     assert requests.post(settings.SENTRY_SNUBA +
                          "/tests/events/drop").status_code == 200
     assert requests.post(settings.SENTRY_SNUBA +
                          "/tests/transactions/drop").status_code == 200
예제 #3
0
 def init_snuba(self):
     self.snuba_eventstream = SnubaEventStream()
     self.snuba_tagstore = SnubaTagStorage()