Skip to content

fix all unit tests; added mock function for Invoke-MgGraphRequest #3691

fix all unit tests; added mock function for Invoke-MgGraphRequest

fix all unit tests; added mock function for Invoke-MgGraphRequest #3691

Triggered via push January 18, 2025 03:47
Status Failure
Total duration 3m 36s
Artifacts
Lint  /  MegaLint YAML Check
26s
Lint / MegaLint YAML Check
Lint  /  PowerShell Check
1m 0s
Lint / PowerShell Check
Syntax  /  Markdown Syntax Checks
27s
Syntax / Markdown Syntax Checks
Security  /  MegaLint Gitleaks
45s
Security / MegaLint Gitleaks
Security  /  MegaLint Checkov
1m 16s
Security / MegaLint Checkov
Unit  /  PowerShell Unit Tests
48s
Unit / PowerShell Unit Tests
Unit  /  OPA Unit Tests
22s
Unit / OPA Unit Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
Unit / PowerShell Unit Tests
[-] Describe Format-RiskyApplications failed
Unit / PowerShell Unit Tests
[-] returns a list of applications with valid properties 35ms (32ms|3ms)
Unit / PowerShell Unit Tests
[-] excludes ResourceAccess objects with property Type='Scope' 35ms (35ms|1ms)
Unit / PowerShell Unit Tests
[-] correctly formats federated credentials if they exist 35ms (34ms|1ms)
Unit / PowerShell Unit Tests
[-] sets the list of federated credentials to null if no credentials exist 33ms (32ms|1ms)
Unit / PowerShell Unit Tests
[-] excludes applications without risky permissions 32ms (31ms|1ms)
Unit / PowerShell Unit Tests
[-] returns a list of service principals with valid properties 35ms (32ms|2ms)
Unit / PowerShell Unit Tests
[-] excludes service principals with no risky permissions 47ms (46ms|1ms)
Unit / PowerShell Unit Tests
[-] excludes permissions not included in the RiskyPermissions.json mapping 35ms (34ms|1ms)
Unit / PowerShell Unit Tests
[-] Describe Get-ThirdPartyRiskyServicePrincipals failed
Lint / MegaLint YAML Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Security / MegaLint Gitleaks
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Security / MegaLint Checkov
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit / OPA Unit Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636