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.6k stars 215 forks source link

Refactor AAD Unit test to pull from central Jsons #1151

Closed Sloane4 closed 3 months ago

Sloane4 commented 3 months ago

๐Ÿ—ฃ Description

Create central Jsons configs that can be pulled and modified slightly for each unit test Closing #1113 Closing #1175

๐Ÿ’ญ Motivation and context

Reduce copy and paste errors and file size. Reduce the difficulty of writing unit tests and PRs. In the process of refactor, discovered false passing in unit tests, adding fix as closely related

๐Ÿงช Testing

โœ… Pre-approval checklist

โœ… Pre-merge checklist

โœ… Post-merge checklist

schrolla commented 3 months ago

@Sloane4 Looks like the smoke test is having trouble access the new assert functions and failing.

Sloane4 commented 3 months ago

@Sloane4 Looks like the smoke test is having trouble access the new assert functions and failing.

@schrolla fixed

Sloane4 commented 3 months ago

@nanda-katikaneni ready for merge