[windows-2025] Install mongosh for ALLUSERS and enable test (#11224)

This commit is contained in:
Shamil Mubarakshin
2024-12-19 11:16:24 +01:00
committed by GitHub
parent bcf2ea82ad
commit c9d728fd25
2 changed files with 7 additions and 4 deletions

View File

@@ -49,8 +49,9 @@ if (Test-IsWin25) {
-UrlMatchPattern "mongosh-*-x64.msi" -UrlMatchPattern "mongosh-*-x64.msi"
Install-Binary -Type MSI ` Install-Binary -Type MSI `
-Url $mongoshDownloadUrl ` -Url $mongoshDownloadUrl `
-ExpectedSignature 'A5BBE2A6DA1D2A6E057EF870267E6A91E4D56BAA' -ExtraInstallArgs @('ALLUSERS=1') `
-ExpectedSignature 'A5BBE2A6DA1D2A6E057EF870267E6A91E4D56BAA'
} }
Invoke-PesterTests -TestFile "Databases" -TestName "MongoDB" Invoke-PesterTests -TestFile "Databases" -TestName "MongoDB"

View File

@@ -30,8 +30,10 @@ Describe "MongoDB" {
} }
} }
Context "Shell" -Skip:(-not (Test-IsWin19) -or -not (Test-IsWin22)) { Context "Shell" -Skip:(-not (Test-IsWin25)) {
"mongosh --version" | Should -Not -BeNullOrEmpty It "mongosh" {
"mongosh --version" | Should -ReturnZeroExitCode
}
} }
} }