issues
search
splunk
/
contentctl
Splunk Content Control Tool
Apache License 2.0
81
stars
21
forks
source link
Consider reusing instances of CorrelationSearch across multiple tests for the same detection
#228
Open
cmcginley-splunk
opened
1 month ago
cmcginley-splunk
commented
1 month ago
Right now, we are creating one CorrelationSearch instance for each case
Typically, there is only one unit test, and thus one integration test, per detection, so this is not an issue.
However, if we start having many test cases per detection, we will be duplicating some effort & network calls that we don't need to.
Consider refactoring in order to re-use CorrelationSearch objects across tests in such a case