Skip to content

Commit

Permalink
[windows-2025] Install mongosh for ALLUSERS and enable test (#11224)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamil-mubarakshin authored Dec 19, 2024
1 parent bcf2ea8 commit c9d728f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions images/windows/scripts/build/Install-MongoDB.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ if (Test-IsWin25) {
-UrlMatchPattern "mongosh-*-x64.msi"

Install-Binary -Type MSI `
-Url $mongoshDownloadUrl `
-ExpectedSignature 'A5BBE2A6DA1D2A6E057EF870267E6A91E4D56BAA'
-Url $mongoshDownloadUrl `
-ExtraInstallArgs @('ALLUSERS=1') `
-ExpectedSignature 'A5BBE2A6DA1D2A6E057EF870267E6A91E4D56BAA'
}

Invoke-PesterTests -TestFile "Databases" -TestName "MongoDB"
6 changes: 4 additions & 2 deletions images/windows/scripts/tests/Databases.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ Describe "MongoDB" {
}
}

Context "Shell" -Skip:(-not (Test-IsWin19) -or -not (Test-IsWin22)) {
"mongosh --version" | Should -Not -BeNullOrEmpty
Context "Shell" -Skip:(-not (Test-IsWin25)) {
It "mongosh" {
"mongosh --version" | Should -ReturnZeroExitCode
}
}
}

Expand Down

0 comments on commit c9d728f

Please sign in to comment.