Add a re-usable function for asserting that the outputs defined in a SOAR app.json are present in the results.data key returned by a SOAR action #4
Labels
good to go
Ready to be worked during a sprint
Milestone
Context
We currently manually assert that data outputs declared in app.json are populated correctly after running a test.
Since the expected fields are encoded in the JSON data, it should be possible to write a helper method that, given the name of the function being tested, reads
app.json
and verifies that the resulting data dictionary contains the expected 'data' keys.Changes such as techservicesillinois/secops-soar-tdx#101 would benefit from this helper.
Tasks
handle_X
function name, and the path toapp.json
, parsesapp.json
and returns a list of expected output keys in the 'data' dictionaryThe text was updated successfully, but these errors were encountered: