File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/ResourceManager/KeyVault/Commands.KeyVault.Test/Scripts Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ Get test key name
23
23
#>
24
24
function Get-KeyVault ([bool ] $haspermission = $true )
25
25
{
26
- if ($global :testEnv -eq ' BVT' -and $haspermission )
26
+ if ($global :testVault -ne " " -and $haspermission )
27
+ {
28
+ return $global :testVault
29
+ }
30
+ elseif ($global :testEnv -eq ' BVT' -and $haspermission )
27
31
{
28
32
return ' powershellbvt'
29
33
}
Original file line number Diff line number Diff line change 8
8
[ValidateSet (' BVT' , ' PROD' )]
9
9
[string ]$TestEnvironment = ' PROD' ,
10
10
[Parameter (Mandatory = $false , Position = 2 , ParameterSetName = " CPTests" )]
11
- [string ]$Location = ' eastus2'
11
+ [string ]$Location = ' eastus2' ,
12
+ [Parameter (Mandatory = $false , Position = 3 )]
13
+ [string ]$Vault = " "
12
14
)
13
15
14
16
$invocationPath = Split-Path $MyInvocation.MyCommand.Definition ;
@@ -29,6 +31,7 @@ $global:times = @{}
29
31
$global :testEnv = $TestEnvironment.ToUpperInvariant ()
30
32
$global :testns = $TestRunNameSpace
31
33
$global :location = $location
34
+ $global :testVault = $Vault
32
35
33
36
function Run-TestProtected
34
37
{
You can’t perform that action at this time.
0 commit comments