From e8c16c7dafee1b8ae087eeae14296f6fd4920666 Mon Sep 17 00:00:00 2001 From: David Paulson Date: Wed, 11 Dec 2024 16:17:57 -0600 Subject: [PATCH] Add known issue for transport pickup directory --- .../Invoke-AnalyzerKnownBuildIssues.ps1 | 14 +++++++++++++ .../Invoke-AnalyzerKnownBuildIssues.Tests.ps1 | 20 +++++++++++++++++++ .../Tests/HealthChecker.E16.Main.Tests.ps1 | 2 +- .../Tests/HealthChecker.E19.Main.Tests.ps1 | 2 +- 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerKnownBuildIssues.ps1 b/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerKnownBuildIssues.ps1 index f970b48467..77bc4d5a8d 100644 --- a/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerKnownBuildIssues.ps1 +++ b/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerKnownBuildIssues.ps1 @@ -260,6 +260,20 @@ function Invoke-AnalyzerKnownBuildIssues { InformationUrl = (GetKnownIssueInformation @infoParams) } TestForKnownBuildIssues @params + + Write-Verbose "Test for known transport pickup issue for version number." + $infoParams = @{ + Name = "Known Issue when sending email with Pickup Folder is using Admin Display Version vs Installed Version" + Url = "https://support.microsoft.com/topic/email-sent-through-pickup-folder-displays-admin-version-068ae880-5bbf-43f0-a1fa-24a78f31635f" + } + $params = @{ + CurrentVersion = $currentVersion + KnownBuildIssuesToFixes = @((GetKnownIssueBuildInformation "15.2.1544.0" "15.2.1544.14"), + (GetKnownIssueBuildInformation "15.2.000.000" "15.2.1258.39" -BuildBound $false), + (GetKnownIssueBuildInformation "15.1.000.000" "15.1.2507.44" -BuildBound $false)) + InformationUrl = (GetKnownIssueInformation @infoParams) + } + TestForKnownBuildIssues @params } catch { Write-Verbose "Failed to run TestForKnownBuildIssues" Invoke-CatchActions diff --git a/Diagnostics/HealthChecker/Analyzer/Tests/Invoke-AnalyzerKnownBuildIssues.Tests.ps1 b/Diagnostics/HealthChecker/Analyzer/Tests/Invoke-AnalyzerKnownBuildIssues.Tests.ps1 index fd23d29b02..48444c58d7 100644 --- a/Diagnostics/HealthChecker/Analyzer/Tests/Invoke-AnalyzerKnownBuildIssues.Tests.ps1 +++ b/Diagnostics/HealthChecker/Analyzer/Tests/Invoke-AnalyzerKnownBuildIssues.Tests.ps1 @@ -71,5 +71,25 @@ Describe "Testing Known Build Issue Main Logic" { } ` -KnownIssue (GetKnownIssueBuildInformation -BuildNumber "15.2.2375.17" -FixBuildNumber $null) } + + It "Testing Issue always been there" { + TestPesterResults -TestGroup @{ + "15.2.1544.14" = $false + "15.2.1544.13" = $false # This is false, but the next test it should be true + "15.2.1258.39" = $false + "15.2.1258.38" = $true + "15.2.1118.40" = $true + } ` + -KnownIssue (GetKnownIssueBuildInformation -BuildNumber "15.2.0.0" -FixBuildNumber "15.2.1258.39" -BuildBound $false) + + TestPesterResults -TestGroup @{ + "15.2.1544.14" = $false + "15.2.1544.13" = $true + "15.2.1258.39" = $false + "15.2.1258.38" = $false + "15.2.1118.40" = $false + } ` + -KnownIssue (GetKnownIssueBuildInformation -BuildNumber "15.2.1544.0" -FixBuildNumber "15.2.1544.14" -BuildBound $true) + } } } diff --git a/Diagnostics/HealthChecker/Tests/HealthChecker.E16.Main.Tests.ps1 b/Diagnostics/HealthChecker/Tests/HealthChecker.E16.Main.Tests.ps1 index acf72215e7..4e4b3b7179 100644 --- a/Diagnostics/HealthChecker/Tests/HealthChecker.E16.Main.Tests.ps1 +++ b/Diagnostics/HealthChecker/Tests/HealthChecker.E16.Main.Tests.ps1 @@ -33,7 +33,7 @@ Describe "Testing Health Checker by Mock Data Imports - Exchange 2016" { TestObjectMatch "Extended Protection Enabled (Any VDir)" $false TestObjectMatch "Setting Overrides Detected" $false TestObjectMatch "Exchange Server Membership" "Passed" - $Script:ActiveGrouping.Count | Should -Be 19 + $Script:ActiveGrouping.Count | Should -Be 22 } It "Display Results - Organization Information" { diff --git a/Diagnostics/HealthChecker/Tests/HealthChecker.E19.Main.Tests.ps1 b/Diagnostics/HealthChecker/Tests/HealthChecker.E19.Main.Tests.ps1 index 69b153f9e3..2bfcf5b18b 100644 --- a/Diagnostics/HealthChecker/Tests/HealthChecker.E19.Main.Tests.ps1 +++ b/Diagnostics/HealthChecker/Tests/HealthChecker.E19.Main.Tests.ps1 @@ -37,7 +37,7 @@ Describe "Testing Health Checker by Mock Data Imports" { TestObjectMatch "Monitoring Overrides Detected" $false TestObjectMatch "Out of Date" $true -WriteType "Red" TestObjectMatch "Exchange Server Membership" "Passed" - $Script:ActiveGrouping.Count | Should -Be 19 + $Script:ActiveGrouping.Count | Should -Be 22 } It "Display Results - Organization Information" {