TracecatHQ / tracecat

The open source Tines / Splunk SOAR alternative.
https://tracecat.com
GNU Affero General Public License v3.0
2.31k stars 152 forks source link

feat(engine): Implement runtime action tests #194

Closed daryllimyt closed 1 month ago

daryllimyt commented 2 months ago

API

# tracecat workflow run <wf_id> --test
tests:
  # If an action has a test, do not run the action and mock/patch the output
  - ref: pull_crowdstrike_alerts
    enable: true # default: true
    validate_args: true # default: true
    # Path (use fsspec to support both local files and http)
    # to sample JSON or YAML content (to be JSONfied)
    success: # This is the mocked/patched output for the action.
    failure: # TODO

config:
    # Statically configure this here, or omit this and pass it in at execution time
    enable_runtime_tests: true

Features

Testing