Upload test files to BinaryAlert which should trigger YARA matches Raises: TestFailureError: If the live test failed (YARA matches not found).
(self)
| 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)""" |