Return if $env:USINGAZAUTH is not true

This commit is contained in:
alerickson 2024-08-09 16:37:17 -07:00
parent 452a6e65f8
commit 79da8d3b38

View File

@ -232,6 +232,10 @@ Describe "PSResourceGet - Script tests (Admin)" -Tags @('Feature', 'RequireAdmin
Describe "PSResourceGet - ACR tests" -tags "Feature" {
BeforeAll {
if ($env:USINGAZAUTH -ne 'true') {
return
}
if ($script:Initialized -eq $false) {
Initialize
$script:Initialized = $true
@ -264,6 +268,10 @@ Describe "PSResourceGet - ACR tests" -tags "Feature" {
}
AfterAll {
if ($env:USINGAZAUTH -ne 'true') {
return
}
Remove-InstalledModules
}
}