mitreattack-python icon indicating copy to clipboard operation
mitreattack-python copied to clipboard

[Request] Optimize the time taken to complete E2E tests

Open seansica opened this issue 1 year ago • 0 comments

Is your feature request related to a problem?

The tests take anywhere from 3-8 hours to complete.

Describe the solution you'd like

Reduce the amount of HTTP queries that the test modules send to the TAXII server. Theoretically, the TAXII server only needs to be queried by one of the tests (once) to validate that this argparser option works as intended.

Describe alternatives you've considered

If duplicate objects need to be retrieved multiple times, consider caching responses locally and/or retrieving the target STIX objects from the mitre/cti JSON source files.

Additional context

pyinstrument was used to validate that approx. 15% (3880s) of the total pytest runtime duration (24800s) of the tests were consumed by TAXII queries.

seansica avatar Aug 23 '22 14:08 seansica