Skip to content

Commit d5ebd4c

Browse files
committed
update
1 parent f5dcfe5 commit d5ebd4c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeTestCommon.ps1

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,26 @@ function Get-ComputeTestMode
8888
return $testMode;
8989
}
9090

91-
92-
<#
93-
.SYNOPSIS
94-
Get Compute Test Location
95-
#>
91+
# Get Compute Test Location
9692
function Get-ComputTestLocation
9793
{
9894
return $env:AZURE_COMPUTE_TEST_LOCATION;
9995
}
10096

101-
<#
102-
.SYNOPSIS
103-
Cleans the created resource groups
104-
#>
97+
# Cleans the created resource group
10598
function Clean-ResourceGroup($rgname)
10699
{
107100
Remove-AzureResourceGroup -Name $rgname -Force;
108101
}
109102

103+
# Get Compute Test Tag
104+
function Get-ComputeTestTag
105+
{
106+
param ([string] $tagname)
107+
108+
return @{ Name = $tagname; Value = (Get-Date).ToUniversalTime().ToString("u") };
109+
}
110+
110111
######################
111112
#
112113
# Retry the given code block until it succeeds or times out.
@@ -164,11 +165,11 @@ Gets random resource name
164165
#>
165166
function Get-RandomItemName
166167
{
167-
param([string] $prefix = "pslibtest")
168+
param([string] $prefix = "crptestps")
168169

169170
if ($prefix -eq $null -or $prefix -eq '')
170171
{
171-
$prefix = "pslibtest";
172+
$prefix = "crptestps";
172173
}
173174

174175
$str = $prefix + ((Get-Random) % 10000);

0 commit comments

Comments
 (0)