Skip to content

Commit

Permalink
fix e2e ssl cert file tests when not set
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Wrock <[email protected]>
  • Loading branch information
mwrock committed Oct 29, 2024
1 parent 60d6481 commit b19f6a9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if($IsLinux) {
$sslCertFileCheck = "test -f `$SSL_CERT_FILE"
$sslCertFilePrint = "echo `$SSL_CERT_FILE"
$sslCacheCertFileCheck = "test -f '/hab/cache/ssl/$e2e_certname'"
$sslCertFileNotSetCheck = "test ! -v SSL_CERT_FILE"
$sslCertFileNotSetCheck = "test $SSL_CERT_FILE = $(hab pkg path core/cacerts)/ssl/certs/cacert.pem"
} else {
$sslCertFileCheck = "exit (!(Test-Path `$env:SSL_CERT_FILE))"
$sslCertFilePrint = "`$env:SSL_CERT_FILE.Replace('\','/')"
Expand Down Expand Up @@ -139,8 +139,6 @@ Context "SSL_CERT_FILE is passed into the studio" {
}
}

Write-Host "--- Testing SSL_CERT_FILE is not set"

Context "SSL_CERT_FILE isn't set" {
BeforeEach {
Remove-CachedCertificate
Expand Down

0 comments on commit b19f6a9

Please sign in to comment.