MCPcopy Create free account
hub / github.com/airbnb/binaryalert / live_test

Method live_test

cli/manager.py:184–194  ·  view source on GitHub ↗

Upload test files to BinaryAlert which should trigger YARA matches Raises: TestFailureError: If the live test failed (YARA matches not found).

(self)

Source from the content-addressed store, hash-verified

182 subprocess.call(['terraform', 'destroy'])
183
184 def live_test(self) -> None:
185 """Upload test files to BinaryAlert which should trigger YARA matches
186
187 Raises:
188 TestFailureError: If the live test failed (YARA matches not found).
189 """
190 if not live_test.run(self._config.binaryalert_s3_bucket_name,
191 self._config.binaryalert_analyzer_name,
192 self._config.binaryalert_dynamo_table_name):
193 raise TestFailureError(
194 '\nLive test failed! See https://binaryalert.io/troubleshooting-faq.html')
195
196 def purge_queue(self) -> None:
197 """Purge the analysis SQS queue (e.g. to stop a retroactive scan)"""

Callers 1

test_live_testMethod · 0.80

Calls 2

TestFailureErrorClass · 0.90
runMethod · 0.45

Tested by 1

test_live_testMethod · 0.64