File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -88,25 +88,26 @@ function Get-ComputeTestMode
88
88
return $testMode ;
89
89
}
90
90
91
-
92
- <#
93
- . SYNOPSIS
94
- Get Compute Test Location
95
- #>
91
+ # Get Compute Test Location
96
92
function Get-ComputTestLocation
97
93
{
98
94
return $env: AZURE_COMPUTE_TEST_LOCATION ;
99
95
}
100
96
101
- <#
102
- . SYNOPSIS
103
- Cleans the created resource groups
104
- #>
97
+ # Cleans the created resource group
105
98
function Clean-ResourceGroup ($rgname )
106
99
{
107
100
Remove-AzureResourceGroup - Name $rgname - Force;
108
101
}
109
102
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
+
110
111
# #####################
111
112
#
112
113
# Retry the given code block until it succeeds or times out.
@@ -164,11 +165,11 @@ Gets random resource name
164
165
#>
165
166
function Get-RandomItemName
166
167
{
167
- param ([string ] $prefix = " pslibtest " )
168
+ param ([string ] $prefix = " crptestps " )
168
169
169
170
if ($prefix -eq $null -or $prefix -eq ' ' )
170
171
{
171
- $prefix = " pslibtest " ;
172
+ $prefix = " crptestps " ;
172
173
}
173
174
174
175
$str = $prefix + ((Get-Random ) % 10000 );
You can’t perform that action at this time.
0 commit comments