mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
24 lines
859 B
PowerShell
24 lines
859 B
PowerShell
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
$os = Get-OSVersion
|
|
|
|
Describe "MongoDB" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
|
|
It "<ToolName>" -TestCases @(
|
|
@{ ToolName = "mongo" }
|
|
@{ ToolName = "mongod" }
|
|
) {
|
|
$toolsetVersion = (Get-ToolsetContent).mongodb.version
|
|
(&$ToolName --version)[2].Split('"')[-2] | Should -BeLike "$toolsetVersion*"
|
|
}
|
|
}
|
|
|
|
Describe "PostgreSQL" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
|
|
It "PostgreSQL version should correspond to the version in the toolset" {
|
|
$toolsetVersion = (Get-ToolsetContent).postgresql.version
|
|
# Client version
|
|
(psql --version).split()[-2] | Should -BeLike "$toolsetVersion*"
|
|
# Server version
|
|
(pg_config --version).split()[-2] | Should -BeLike "$toolsetVersion*"
|
|
}
|
|
}
|