[macOS] move Pester tests to separate files/contexts/describes (#2573)

* [macOS] Fail Pester tests on error

* return it back

* added all files for testing

* common utils path changed

* linux scripts shouldn't be touched
This commit is contained in:
Darii Nurgaleev
2021-01-29 16:37:48 +07:00
committed by GitHub
parent 2ee29eddc1
commit f5b6afebd0
11 changed files with 264 additions and 204 deletions

View File

@@ -0,0 +1,21 @@
Describe "OpenSSL" {
Context "OpenSSL Version" {
It "OpenSSL is available" {
"openssl version" | Should -ReturnZeroExitCode
}
}
Context "OpenSSL 1.1 Path Check" {
It "OpenSSL 1.1 path exists" {
$openSSLpath = "/usr/local/opt/openssl@1.1"
$openSSLpath | Should -Exist
}
}
Context "OpenSSL 1.1 is default" {
It "Default OpenSSL version is 1.1" {
$commandResult = Get-CommandResult "openssl version"
$commandResult.Output | Should -Match "OpenSSL 1.1"
}
}
}