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
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.jsonand 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_Xfunction name, and the path toapp.json, parsesapp.jsonand returns a list of expected output keys in the 'data' dictionary