Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
# different occurrence. .NET allows the repeated 'url' group name across the alternation.
# https only: display names are not escaped in result markdown, so a crafted name can smuggle
# a javascript: url into a link that would otherwise match a portal pattern.
# The name may contain one level of brackets ("[RaviK] - Policy") and the url may be followed
# by a link title (`[name](url "title")`).
$linkPattern = '\[(?<name>(?:[^\[\]]|\[[^\[\]]*\])+)\]\((?<url>https://[^)\s]+)(?:\s+"[^"]*")?\)|(?<url>https://[^\s)\]]+)'
# Consume backslash escapes before interpreting brackets. Generated names can contain escaped
# unmatched or nested brackets; legacy unescaped names may contain one bracketed group.
# The url may be followed by a link title (`[name](url "title")`).
$linkPattern = '\[(?<name>(?:\\.|[^\[\]\\]|\[(?:\\.|[^\[\]\\])*\])+)\]\((?<url>https://[^)\s]+)(?:\s+"(?<title>[^"]*)")?\)|(?<url>https://[^\s)\]]+)'
# Markdown backslash escapes (\( \_ \* ...) that result markdown adds around display names.
# Must stay a superset of what Get-MtSafeMarkdown escapes, or a name keeps a literal
# backslash on the affected-objects page. `:` and `@` were added there for GFM autolink
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
BeforeDiscovery {
$script:CisLiteralNameCases = foreach ($id in @('1.3.2') + @(1..13 + 15..17 | ForEach-Object { "5.2.2.$_" })) {
foreach ($state in @('enabled', 'disabled', 'enabledForReportingButNotEnforced')) {
@{ Id = "CIS.M365.$id"; State = $state; Expected = $state -eq 'enabled' }
}
}
}
BeforeAll {
$script:root = (Resolve-Path "$PSScriptRoot/../../..").Path
Import-Module "$script:root/powershell/Maester.psd1" -Force
$script:adminRoles = @(& (Get-Module Maester) { Get-MtCisAdministratorRole | ForEach-Object Id })
}
Describe 'Literal tenant names in CIS Conditional Access results' {
BeforeEach {
$script:policy = $null
Mock Get-MtConditionalAccessPolicy -ModuleName Maester { $script:policy }
Mock Test-MtConnection -ModuleName Maester { $true }
Mock Get-MgContext -ModuleName Maester { $null }
Mock Invoke-MtGraphRequest -ModuleName Maester {
switch ($RelativeUri) {
'identity/conditionalAccess/namedLocations' { @() }
'organization' { [pscustomobject]@{ displayName = 'Report test tenant' } }
'policies/activityBasedTimeoutPolicies' { [pscustomobject]@{ definition=@('{"ActivityBasedTimeoutPolicy":{"ApplicationPolicies":[{"WebSessionIdleTimeout":"03:00:00"}]}}') } }
default { throw "Unexpected endpoint: $RelativeUri" }
}
}
}
It '<Id> preserves replacement tokens and the <State> verdict' -ForEach $script:CisLiteralNameCases {
$name = 'Policy $& $$ $1 ${name}'
$scope = @{
users = @{ includeUsers=@('All'); excludeUsers=@(); includeGroups=@(); excludeGroups=@(); includeRoles=$script:adminRoles; excludeRoles=@() }
applications = @{ includeApplications=@('All'); excludeApplications=@(); includeUserActions=@(); includeAuthenticationContextClassReferences=@(); applicationFilter=$null }
clientAppTypes = @('all')
userRiskLevels = @()
signInRiskLevels = @()
}
$controls = @{ grantControls=@{ operator='OR'; builtInControls=@('mfa'); customAuthenticationFactors=@(); termsOfUse=@(); authenticationStrength=$null }; sessionControls=$null }
switch ($Id) {
'CIS.M365.1.3.2' {
$scope.applications.includeApplications=@('Office365');$scope.clientAppTypes=@('browser')
$controls.sessionControls=@{applicationEnforcedRestrictions=@{isEnabled=$true}}
}
'CIS.M365.5.2.2.3' { $scope.clientAppTypes=@('exchangeActiveSync','other');$controls.grantControls.builtInControls=@('block') }
'CIS.M365.5.2.2.4' { $controls.sessionControls=@{persistentBrowser=@{isEnabled=$true;mode='never'};signInFrequency=@{isEnabled=$true;frequencyInterval='everyTime'}} }
'CIS.M365.5.2.2.5' { $controls.grantControls.builtInControls=@();$controls.grantControls.authenticationStrength=@{id='strength';allowedCombinations=@('fido2')} }
'CIS.M365.5.2.2.6' {
$scope.userRiskLevels=@('high');$controls.grantControls.operator='AND';$controls.grantControls.builtInControls=@('mfa','passwordChange')
$controls.sessionControls=@{signInFrequency=@{isEnabled=$true;frequencyInterval='everyTime'}}
}
'CIS.M365.5.2.2.7' { $scope.signInRiskLevels=@('medium','high');$controls.grantControls.builtInControls=@('block') }
'CIS.M365.5.2.2.8' { $scope.signInRiskLevels=@('medium','high');$controls.grantControls.builtInControls=@('block') }
'CIS.M365.5.2.2.9' { $controls.grantControls.builtInControls=@('compliantDevice') }
'CIS.M365.5.2.2.10' {
$scope.applications.includeApplications=@();$scope.applications.includeUserActions=@('urn:user:registersecurityinfo')
$controls.grantControls.builtInControls=@('compliantDevice')
}
'CIS.M365.5.2.2.11' {
$scope.applications.includeApplications=@('d4ebce55-015a-49b5-a083-c84d1797ae8c')
$controls.sessionControls=@{signInFrequency=@{isEnabled=$true;frequencyInterval='everyTime'}}
}
'CIS.M365.5.2.2.12' { $scope.authenticationFlows=@{transferMethods=@('deviceCodeFlow')};$controls.grantControls.builtInControls=@('block') }
'CIS.M365.5.2.2.13' { $controls.sessionControls=@{signInFrequency=@{isEnabled=$true;frequencyInterval='everyTime'}} }
'CIS.M365.5.2.2.15' { $scope.locations=@{includeLocations=@('All');excludeLocations=@('AllTrusted')};$controls.grantControls.builtInControls=@('block') }
'CIS.M365.5.2.2.16' {
$scope.applications.includeApplications=@('00000002-0000-0ff1-ce00-000000000000','00000003-0000-0ff1-ce00-000000000000','cc15fd57-2c6c-4117-a88c-83b1d56b4bbe')
$scope.platforms=@{includePlatforms=@('windows');excludePlatforms=@()};$scope.clientAppTypes=@('mobileAppsAndDesktopClients')
$controls.sessionControls=@{secureSignInSession=@{isEnabled=$true}}
}
'CIS.M365.5.2.2.17' { $scope.authenticationFlows=@{transferMethods=@('authenticationTransfer')};$controls.grantControls.builtInControls=@('block') }
}
$script:policy = [pscustomobject]@{
id = 'standalone-policy'
displayName = $name
state = $State
conditions = $scope
grantControls = $controls.grantControls
sessionControls = $controls.sessionControls
}
$config = [pscustomobject]@{ Environment = [pscustomobject]@{ Licenses=@('AAD_PREMIUM','AAD_PREMIUM_P2'); Services=[pscustomobject]@{Graph=$true} } }
$row = Invoke-MtTest -Id $Id -Config $config
$row.Result | Should -Be $(if ($Expected) { 'Passed' } else { 'Failed' }) -Because ($row.ReasonDetail | Out-String)
$candidate = @($row.ResultDetail.TestResult -split "`n" | Where-Object { $_.StartsWith('| Policy') -and $_.Contains('$&') })
$candidate | Should -HaveCount 1
$candidate[0] | Should -Match ([regex]::Escape($name))
$candidate[0] | Should -Match ([regex]::Escape($State))
$cells = $candidate[0].Split('|')
$cells[-2].Trim() | Should -Be $(if ($Expected) { '✅ Pass' } else { '❌ Fail' })
$script:policy.displayName | Should -BeExactly $name
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
BeforeAll {
Import-Module "$PSScriptRoot/../../Maester.psd1" -Force
}
Describe 'Tenant-controlled names in security check reports' {
BeforeEach {
$script:captured=$null
Mock Add-MtTestResultDetail -ModuleName Maester { $script:captured=$Result }
}
It 'preserves literal replacement tokens in a CIS policy name' {
$script:policy=[pscustomobject]@{
id='policy';displayName='Policy $& $$';state='enabled'
conditions=@{users=@{includeUsers=@('All')};applications=@{includeApplications=@('All');excludeApplications=@()};clientAppTypes=@('all');userRiskLevels=@();signInRiskLevels=@()}
grantControls=@{operator='OR';builtInControls=@('mfa');authenticationStrength=$null;termsOfUse=@();customAuthenticationFactors=@()}
}
Mock Get-MtConditionalAccessPolicy -ModuleName Maester {$script:policy}
& (Get-Module Maester) { Test-MtCisMfaForEveryUser }|Should -BeTrue
$script:captured|Should -Match ([regex]::Escape('Policy $& $$'))
}
It 'keeps a named location containing a pipe inside one cell' {
Mock Invoke-MtGraphRequest -ModuleName Maester {
[pscustomobject]@{'@odata.type'='#microsoft.graph.ipNamedLocation';displayName='HQ | Berlin $& $$';isTrusted=$true;ipRanges=@(@{cidrAddress='10.0.0.0/24'})}
}
& (Get-Module Maester) { Test-MtCisTrustedNamedLocation }|Should -BeTrue
$script:captured | Should -Match ([regex]::Escape('HQ \| Berlin $& $$'))
$lines=@($script:captured -split "`n"|Where-Object {$_.StartsWith('|')})
([regex]::Split($lines[2],'(?<!\\)\|')).Count|Should -Be ([regex]::Split($lines[0],'(?<!\\)\|')).Count
}
It 'keeps an anti-spam policy containing a pipe inside one cell' {
Mock Get-MtExo -ModuleName Maester {[pscustomobject]@{Identity='Policy | East $& $$';AllowedSenderDomains=@('example.org')}}
& (Get-Module Maester) { Test-MtCisAntiSpamAllowedDomain }|Should -BeFalse
$script:captured | Should -Match ([regex]::Escape('Policy \| East $& $$'))
$lines=@($script:captured -split "`n"|Where-Object {$_.StartsWith('|')})
([regex]::Split($lines[2],'(?<!\\)\|')).Count|Should -Be ([regex]::Split($lines[0],'(?<!\\)\|')).Count
}
It 'escapes a closing bracket in the baseline placeholder app link' {
Mock Get-MtConditionalAccessPolicy -ModuleName Maester {@()}
Mock Invoke-MtGraphRequest -ModuleName Maester {
if($RelativeUri -eq 'identity/conditionalAccess/settings'){
[pscustomobject]@{advancedSettings=@{baselineScopes=@{resourceAppId='7c9e6f2a-4b1d-4e8a-9f3c-b5d2a8e1c4f7'}}}
}elseif($RelativeUri -eq 'servicePrincipals'){
[pscustomobject]@{id='sp-id';displayName='Placeholder] suffix'}
}else{throw "Unexpected endpoint: $RelativeUri"}
}
& (Get-Module Maester) { Test-MtCaBaselineScopesEnforcement }|Should -BeTrue
$script:captured|Should -Match ([regex]::Escape('[Placeholder\] suffix]('))
}
It 'keeps a multiline authentication-strength name inside its table cell' {
$script:managed=[pscustomobject]@{
id='managed';displayName='Microsoft-managed: Example';state='enabledForReportingButNotEnforced';createdDateTime=(Get-Date).AddDays(-5)
grantControls=@{builtInControls=@();operator='OR';authenticationStrength=@{displayName="Strong | [Key]`nMFA"}}
}
Mock Get-MtConditionalAccessPolicy -ModuleName Maester {$script:managed}
Mock Get-GraphObjectMarkdown -ModuleName Maester {'policy-link'}
& (Get-Module Maester) { Test-MtCaMicrosoftManagedPolicyReportOnly }|Should -BeFalse
$script:captured | Should -Match ([regex]::Escape('authentication strength: Strong \| \[Key\] MFA'))
$lines=@($script:captured -split "`n"|Where-Object {$_.StartsWith('|')})
([regex]::Split($lines[2],'(?<!\\)\|')).Count|Should -Be ([regex]::Split($lines[0],'(?<!\\)\|')).Count
}
}

Describe 'Affected-object matching with escaped display names' {
It 'preserves IDs and duplicate names for <Name>' -ForEach @(
@{ Name = 'Same name' }
@{ Name = 'Rule ] review' }
@{ Name = '[outer [inner] tail]' }
@{ Name = 'Back\slash [review] ]' }
@{ Name = 'Policy $& $$' }
) {
$ids = @('11111111-1111-4111-8111-111111111111', '22222222-2222-4222-8222-222222222222')
$label = Get-MtSafeMarkdown $Name
$markdown = ($ids | ForEach-Object { "[$label](https://entra.microsoft.com/#view/Microsoft_AAD_ConditionalAccess/PolicyBlade/policyId/$_)" }) -join "`n"
$records = @(& (Get-Module Maester) { param($md) Get-MtAffectedObjectFromMarkdown -Markdown $md -TestId 'PROBE.1' } $markdown)
$records | Should -HaveCount 2
@($records.Id | Sort-Object) | Should -Be $ids
foreach ($record in $records) {
$record.Type | Should -Be 'ConditionalAccessPolicy'
$record.DisplayName | Should -BeExactly $Name
$record.TestId | Should -Be 'PROBE.1'
}
}
}
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.1.3.2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
4 changes: 2 additions & 2 deletions tests/cis/Test.CIS.M365.2.1.14.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
$resultMd = "| Policy | Allowed sender domains | Result |`n"
$resultMd += "| --- | --- | --- |`n"
foreach ($row in $report) {
$resultMd += "| $($row.Name) | $(if ($row.Count -gt 0) { $row.Domains } else { 'None' }) | $(if ($row.Pass) { '✅ Pass' } else { '❌ Fail' }) |`n"
$resultMd += "| $(Get-MtSafeMarkdown $row.Name) | $(if ($row.Count -gt 0) { $row.Domains } else { 'None' }) | $(if ($row.Pass) { '✅ Pass' } else { '❌ Fail' }) |`n"
}

if ($testResult) {
$testResultMarkdown = "Well done. $passText`n`n%TestResult%"
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.1.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.10.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.11.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.12.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.13.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
4 changes: 2 additions & 2 deletions tests/cis/Test.CIS.M365.5.2.2.14.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
$resultMd = "| Named location | IP ranges | Trusted | Result |`n"
$resultMd += "| --- | --- | --- | --- |`n"
foreach ($row in $report) {
$resultMd += "| $($row.Name) | $($row.Ranges) | $($row.Trusted) | $(if ($row.Pass) { '✅ Pass' } else { '❌ Fail' }) |`n"
$resultMd += "| $(Get-MtSafeMarkdown $row.Name) | $($row.Ranges) | $($row.Trusted) | $(if ($row.Pass) { '✅ Pass' } else { '❌ Fail' }) |`n"
}

if ($testResult) {
$testResultMarkdown = "Well done. $passText`n`n%TestResult%"
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.15.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.16.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.17.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.3.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.4.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.5.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.6.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.7.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
2 changes: 1 addition & 1 deletion tests/cis/Test.CIS.M365.5.2.2.8.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
} else {
$testResultMarkdown = "$failText`n`n%TestResult%"
}
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $resultMd
$testResultMarkdown = $testResultMarkdown.Replace('%TestResult%', $resultMd)

Add-MtTestResultDetail -Result $testResultMarkdown
return $testResult
Expand Down
Loading
Loading