Final updates
This commit is contained in:
Родитель
f5ec0f23f4
Коммит
5dfaff1edd
|
@ -12,13 +12,13 @@ markdownissues.txt
|
|||
start-unittests.ps1
|
||||
TestDSCresource.ps1
|
||||
Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterPolicy/Set-MalwareFilterPolicy.txt
|
||||
.vscode/settings.json
|
||||
docker/Extract.ps1
|
||||
docker/Monitor.ps1
|
||||
Modules/start-extraction.ps1
|
||||
Modules/Microsoft365DSC/DSCResources/MSFT_EXOAvailabilityAddressSpace/Add-AvailabilityAddressSpace-parameterset.txt
|
||||
*.log
|
||||
DscResource.Tests/*
|
||||
CodeCov.xml
|
||||
|
||||
# generated docs
|
||||
docs/site
|
||||
|
|
|
@ -85,7 +85,7 @@ function Invoke-TestHarness
|
|||
PassThru = $true
|
||||
}
|
||||
Output = @{
|
||||
Verbosity = 'Detailed'
|
||||
Verbosity = 'Normal'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ function Invoke-TestHarness
|
|||
|
||||
$results = Invoke-Pester -Configuration $Configuration
|
||||
|
||||
$message = 'Running the tests took {0} hours, {1} minutes, {2} seconds' -f $sw.Hours, $sw.Minutes, $sw.Seconds
|
||||
$message = 'Running the tests took {0} hours, {1} minutes, {2} seconds' -f $sw.Elapsed.Hours, $sw.Elapsed.Minutes, $sw.Elapsed.Seconds
|
||||
Write-Host -Object $message
|
||||
|
||||
$env:PSModulePath = $oldModPath
|
||||
|
|
|
@ -495,9 +495,9 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
|
|||
}
|
||||
]
|
||||
'@
|
||||
$role = $json | ConvertFrom-Json
|
||||
$mockRole = $json | ConvertFrom-Json
|
||||
Mock -CommandName Get-MgPolicyRoleManagementPolicyRule -MockWith {
|
||||
return $role
|
||||
return $mockRole
|
||||
}
|
||||
|
||||
# Mock Write-Host to hide output during the tests
|
||||
|
|
Загрузка…
Ссылка в новой задаче