-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
176 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -485,4 +485,7 @@ dist | |
testResults.html | ||
test.json | ||
|
||
.idea | ||
.idea | ||
|
||
# Don't allow test results in the main branch | ||
test-results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<# | ||
.Synopsis | ||
Helper method to connect to Microsoft Graph using Connect-MgGraph with the required scopes. | ||
.Description | ||
Use this cmdlet to connect to Microsoft Graph using Connect-MgGraph. | ||
This cmdlet is a short form for calling | ||
``` | ||
Connect-MgGraph -Scopes (Get-MtGraphScopes) | ||
``` | ||
.Example | ||
Connect-MtGraph | ||
#> | ||
|
||
Function Connect-MtGraph { | ||
Connect-MgGraph -Scopes (Get-MtGraphScopes) -NoWelcome | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<# | ||
.Synopsis | ||
Returns the list of Graph scopes required to run Maester. | ||
.Description | ||
Use this cmdlet to connect to Microsoft Graph using Connect-MgGraph. | ||
.Example | ||
Connect-MgGraph -Scopes (Get-MtGraphScopes) | ||
#> | ||
|
||
Function Get-MtGraphScopes { | ||
|
||
return @( | ||
'Policy.Read.All' | ||
'Directory.Read.All' | ||
'Policy.ReadWrite.ConditionalAccess' | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Custom Tests | ||
|
||
Place your custom Pester tests in this directory. | ||
|
||
If you need to customize the default tests, you can copy the tests from the `tests` directory add them here and modify to suit your needs. | ||
|
||
To make it easier to filter and run just your tests, add a 'Custom' tag to your tests and then run the tests with the `Invoke-Maester.ps1` script using the `-Tag` parameter. | ||
|
||
```powershell | ||
./tests/Invoke-Maester.ps1 -Tag Custom | ||
``` |
Oops, something went wrong.