cisagov / ScubaGear

Automation to assess the state of your M365 tenant against CISA's baselines
https://www.cisa.gov/resources-tools/services/secure-cloud-business-applications-scuba-project
Creative Commons Zero v1.0 Universal
1.76k stars 226 forks source link

Move workflow code into functions and write unit tests for them #1402

Open james-garriss opened 2 weeks ago

james-garriss commented 2 weeks ago

💡 Summary

Write unit tests for all the code in the workflows.

Motivation and context

All code should be tested to prevent unknown problems from biting us unexpectedly (which has happened).

Implementation notes

Look through all the workflows. Pull out any code. Put them into functions in "utils/workflow". Write Pester unit tests for them.
Verify that the workflows still work and that the unit tests pass.

Acceptance criteria

How do we know when this work is done?

james-garriss commented 2 weeks ago

TODO: I need to create individual issues for each workflow that needs to be modified and add them to this epic.