ps/Modules/Alkami.PowerShell.Configuration/Public/Test-IsQaEnvironment.ps1
2023-05-30 22:51:22 -07:00

20 lines
535 B
PowerShell

function Test-IsQaEnvironment {
<#
.SYNOPSIS
Determine if this environment is configured as a QA environment
.PARAMETER ComputerName
What computer do we check, defaults to localhost
#>
[CmdletBinding()]
[OutputType([System.Boolean])]
param (
[string]$ComputerName = 'localhost'
)
$environmentType = (Get-EnvironmentType -ComputerName $ComputerName)
$environmentTypeNames = @('QA', 'TeamQA', 'Integration', 'Test', 'Regression')
return ($environmentTypeNames -contains $environmentType)
}