You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Updated PowerShell test compatibility with Pester 6 ([#2204](https://github.com/microsoft/finops-toolkit/pull/2204)).
81
83
-**Fixed**
82
84
- Fixed [Get-FinOpsCostExport](powershell/cost/get-finopscostexport.md)`-RunHistory` to return the complete run history ([#2063](https://github.com/microsoft/finops-toolkit/issues/2063)).
83
85
- Bumped the `Az.Accounts` required-module minimum to 2.17.0 so dependency resolution can't land on a version missing the `Get-AzAccessToken -AsSecureString` parameter that `Invoke-Rest` relies on ([#2185](https://github.com/microsoft/finops-toolkit/issues/2185)).
$resolvedPath| Should -Not-BeNullOrEmpty -Because "link target '$PathPart' in ${SourceRel}:${LineNumber} should resolve to an existing file"
271
271
}
272
272
273
-
It 'Should have a valid anchor: <SourceRel>:<LineNumber> [<LinkText>](<LinkTarget>)'-ForEach ($mslearnInternalLinks|Where-Object { $_.AnchorPart }) {
273
+
It 'Should have a valid anchor: <SourceRel>:<LineNumber> [<LinkText>](<LinkTarget>)'-AllowNullOrEmptyForEach -ForEach ($mslearnInternalLinks|Where-Object { $_.AnchorPart }) {
It 'Should not contain https://learn.microsoft.com links: <SourceRel>:<LineNumber>'-ForEach $learnMicrosoftLinks {
291
+
It 'Should not contain https://learn.microsoft.com links: <SourceRel>:<LineNumber>'-AllowNullOrEmptyForEach -ForEach $learnMicrosoftLinks {
292
292
$Url| Should -Not-Match'learn\.microsoft\.com'-Because "links in docs-mslearn should use root-relative paths (e.g., /azure/...) instead of full URLs since docs are deployed to learn.microsoft.com (${SourceRel}:${LineNumber})"
It 'Should not contain language locale in URL: <SourceRel>:<LineNumber> <Url>'-ForEach $localizedMsLearnLinks {
305
+
It 'Should not contain language locale in URL: <SourceRel>:<LineNumber> <Url>'-AllowNullOrEmptyForEach -ForEach $localizedMsLearnLinks {
306
306
$Url| Should -Not-Match'learn\.microsoft\.com/[a-z]{2}-[a-z]{2}/'-Because "MS Learn links should not include language locale segments like /en-us/ (${SourceRel}:${LineNumber})"
$resolvedPath| Should -Not-BeNullOrEmpty -Because "link target '$PathPart' in ${SourceRel}:${LineNumber} should resolve to an existing file"
359
359
}
360
360
361
-
It 'Should have a valid anchor: <SourceRel>:<LineNumber> [<LinkText>](<LinkTarget>)'-ForEach ($jekyllInternalLinks|Where-Object { $_.AnchorPart }) {
361
+
It 'Should have a valid anchor: <SourceRel>:<LineNumber> [<LinkText>](<LinkTarget>)'-AllowNullOrEmptyForEach -ForEach ($jekyllInternalLinks|Where-Object { $_.AnchorPart }) {
$resolvedPath| Should -Not-BeNullOrEmpty -Because "link target '$PathPart' in ${SourceRel}:${LineNumber} should resolve to an existing file"
432
432
}
433
433
434
-
It 'Should have a valid anchor: <SourceRel>:<LineNumber> [<LinkText>](<LinkTarget>)'-ForEach ($rootInternalLinks|Where-Object { $_.AnchorPart }) {
434
+
It 'Should have a valid anchor: <SourceRel>:<LineNumber> [<LinkText>](<LinkTarget>)'-AllowNullOrEmptyForEach -ForEach ($rootInternalLinks|Where-Object { $_.AnchorPart }) {
0 commit comments