Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanced Defender license warnings for policy groups 2 and 4 (#929)
* add defender utils function * DefenderConfig.rego add check for Defender license * Defender.rego fix * Defender.rego unused argument * unit test fix for policy 2.x * Update DefenderConfig_02_test.rego * remove enpty lines * unit test update * Update DefenderConfig_04_test.rego * Update DefenderConfig_02_test.rego * Update Defender.rego * Update Defender.rego * unit test 2 update * unit test 4 update * Update Defender.rego * Update DefenderConfig_02_test.rego * Update DefenderConfig_04_test.rego * Update DefenderConfig.rego * Update DefenderConfig.rego * Update Defender.rego * Update DefenderConfig.rego * Update DefenderConfig.rego * Update DefenderConfig.rego * Update Defender.rego * Update Defender.rego * Update Defender.rego * Update DefenderConfig_02_test.rego * Update Defender.rego * Update DefenderConfig_02_test.rego * change language * update unit test language * Update unit test 4 language * Update Defender.rego * unit test 2 update * unit test 4 * Update DefenderConfig_04_test.rego * revert 4.1 4.3 4.4 * rever 4.1 4.3 4.4 * change wording * unit test 2 wording change * unit 4 wording change * update 4.2 * update unit test * Update DefenderConfig_04_test.rego * Update DefenderConfig_04_test.rego * Update DefenderConfig_04_test.rego * Update DefenderConfig.rego * Update DefenderConfig.rego * test case wording fix * Update Defender.rego * policy 4.x changes * provider add additional error checks * update dlp license warning * Update DefenderConfig.rego * fix lint issue * add Utils DLP license true case * * Refactor license warning message * Add DLP license warning details for Teams and Devices * Update unit tests to handle message changes * Correct results filename in warning message * Extend result file name construction logic * Fix or ignore long line length style warnings * * Improve test name for Defender for O365 license tests * Add tests that show fail when license not present in G3 * * Add tests for DLP license error * Remove invalid test test_Locations_Incorrect_V9 * Add DLPLicenseWarning when DLP license not present * Remove unused import reference * Replace unused arg with wildcard * Fix spacing to be consistent with other uses in conditionals Co-authored-by: David Bui <105074908+buidav@users.noreply.github.com> * Rename dlp_license key to defender_dlp_license --------- Co-authored-by: Addam Schroll <108814318+schrolla@users.noreply.github.com> Co-authored-by: David Bui <105074908+buidav@users.noreply.github.com>
- Loading branch information