2023-05-05 12:13:47 +02:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
|
|
2023-09-21 13:57:24 +02:00
|
|
|
Describe "OpenSSL" {
|
2021-01-29 16:37:48 +07:00
|
|
|
Context "OpenSSL Version" {
|
|
|
|
|
It "OpenSSL is available" {
|
|
|
|
|
"openssl version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-08 11:13:31 -08:00
|
|
|
Context "OpenSSL 1.1 Path Check" {
|
|
|
|
|
It "OpenSSL 1.1 path exists" {
|
|
|
|
|
$openSSLpath = brew --prefix openssl@1.1
|
|
|
|
|
$openSSLpath | Should -Exist
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-07 19:02:19 -06:00
|
|
|
Context "OpenSSL 1.1 is default" {
|
|
|
|
|
It "Default OpenSSL version is 1.1" {
|
2021-01-29 16:37:48 +07:00
|
|
|
$commandResult = Get-CommandResult "openssl version"
|
2024-11-07 19:02:19 -06:00
|
|
|
$commandResult.Output | Should -Match "OpenSSL 1.1"
|
2021-01-29 16:37:48 +07:00
|
|
|
}
|
|
|
|
|
}
|
2023-09-21 13:57:24 +02:00
|
|
|
}
|