File tree Expand file tree Collapse file tree 13 files changed +1465
-1532
lines changed
Microsoft.Azure.Commands.Anf.Test.ScenarioTests.ScenarioTest.AccountTests
Microsoft.Azure.Commands.Anf.Test.ScenarioTests.ScenarioTest.PoolTests
Microsoft.Azure.Commands.Anf.Test.ScenarioTests.ScenarioTest.SnapshotTests
Microsoft.Azure.Commands.Anf.Test.ScenarioTests.ScenarioTest.VolumeTests Expand file tree Collapse file tree 13 files changed +1465
-1532
lines changed Original file line number Diff line number Diff line change 13
13
// ----------------------------------------------------------------------------------
14
14
15
15
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
16
- using System ;
17
16
using Xunit ;
18
17
19
18
namespace Microsoft . Azure . Commands . Anf . Test . ScenarioTests . ScenarioTest
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ Test Account CRUD operations
18
18
#>
19
19
function Test-AccountCrud
20
20
{
21
- $resourceGroup = RandomString " pws-sdk-tests-rg-" 5
22
- $accName1 = RandomString " pws-sdk-acc-1" 5
23
- $accName2 = RandomString " pws-sdk-acc-2" 5
21
+ $resourceGroup = " pws-sdk-tests-rg-1 "
22
+ $accName1 = " pws-sdk-acc-1"
23
+ $accName2 = " pws-sdk-acc-2"
24
24
$resourceLocation = " westus2"
25
25
26
26
try
Original file line number Diff line number Diff line change @@ -129,13 +129,3 @@ function Clean-ResourceGroup($rgname)
129
129
{
130
130
Remove-AzureRmResourceGroup - Name $rgname - Force
131
131
}
132
-
133
-
134
- <#
135
- . SYNOPSIS
136
- Create a random string of given length with the provided prefix
137
- #>
138
- function RandomString ($prefix , $size )
139
- {
140
- return $prefix + -join ((65 .. 90 ) + (97 .. 122 ) | Get-Random - Count $size | % {[char ]$_ })
141
- }
Original file line number Diff line number Diff line change 13
13
// ----------------------------------------------------------------------------------
14
14
15
15
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
16
- using System ;
17
16
using Xunit ;
18
17
19
18
namespace Microsoft . Azure . Commands . Anf . Test . ScenarioTests . ScenarioTest
@@ -27,7 +26,7 @@ public PoolTests(Xunit.Abstractions.ITestOutputHelper output)
27
26
_logger = new ServiceManagement . Common . Models . XunitTracingInterceptor ( output ) ;
28
27
ServiceManagement . Common . Models . XunitTracingInterceptor . AddToContext ( _logger ) ;
29
28
}
30
-
29
+
31
30
[ Fact ]
32
31
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
33
32
public void TestPoolCrud ( )
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ Test Pool CRUD operations
18
18
#>
19
19
function Test-PoolCrud
20
20
{
21
- $resourceGroup = RandomString " pws-sdk-tests-rg-" 5
22
- $accName = RandomString " pws-sdk-acc-1" 5
23
- $poolName1 = RandomString " pws-sdk-pool-1" 5
24
- $poolName2 = RandomString " pws-sdk-pool-2" 5
21
+ $resourceGroup = " pws-sdk-tests-rg-1 "
22
+ $accName = " pws-sdk-acc-1"
23
+ $poolName1 = " pws-sdk-pool-1"
24
+ $poolName2 = " pws-sdk-pool-2"
25
25
$resourceLocation = " westus2"
26
26
$standardPoolSize = 4398046511104
27
27
$serviceLevel = " Premium"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public SnapshotTests(Xunit.Abstractions.ITestOutputHelper output)
27
27
_logger = new ServiceManagement . Common . Models . XunitTracingInterceptor ( output ) ;
28
28
ServiceManagement . Common . Models . XunitTracingInterceptor . AddToContext ( _logger ) ;
29
29
}
30
-
30
+
31
31
[ Fact ]
32
32
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
33
33
public void TestSnapshotCrud ( )
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ function Test-SnapshotCrud
21
21
$currentSub = (Get-AzureRmContext ).Subscription
22
22
$subsid = $currentSub.SubscriptionId
23
23
24
- $resourceGroup = RandomString " pws-sdk-tests-rg" 5
25
- $accName = RandomString " pws-sdk-acc-2" 5
26
- $poolName = RandomString " pws-sdk-pool-1" 5
27
- $volName = RandomString " pws-sdk-vol-1" 5
28
- $snName1 = RandomString " pws-sdk-snapshot-1" 5
29
- $snName2 = RandomString " pws-sdk-snapshot-2" 5
24
+ $resourceGroup = " pws-sdk-tests-rg-1 "
25
+ $accName = " pws-sdk-acc-2"
26
+ $poolName = " pws-sdk-pool-1"
27
+ $volName = " pws-sdk-vol-1"
28
+ $snName1 = " pws-sdk-snapshot-1"
29
+ $snName2 = " pws-sdk-snapshot-2"
30
30
$gibibyte = 1024 * 1024 * 1024
31
31
$usageThreshold = 100 * $gibibyte
32
32
$doubleUsage = 2 * $usageThreshold
Original file line number Diff line number Diff line change 13
13
// ----------------------------------------------------------------------------------
14
14
15
15
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
16
- using System ;
17
16
using Xunit ;
18
17
19
18
namespace Microsoft . Azure . Commands . Anf . Test . ScenarioTests . ScenarioTest
@@ -27,7 +26,7 @@ public VolumeTests(Xunit.Abstractions.ITestOutputHelper output)
27
26
_logger = new ServiceManagement . Common . Models . XunitTracingInterceptor ( output ) ;
28
27
ServiceManagement . Common . Models . XunitTracingInterceptor . AddToContext ( _logger ) ;
29
28
}
30
-
29
+
31
30
[ Fact ]
32
31
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
33
32
public void TestVolumeCrud ( )
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ function Test-VolumeCrud
21
21
$currentSub = (Get-AzureRmContext ).Subscription
22
22
$subsid = $currentSub.SubscriptionId
23
23
24
- $resourceGroup = RandomString " pws-sdk-tests-rg" 5
25
- $accName = RandomString " pws-sdk-acc-2" 5
26
- $poolName = RandomString " pws-sdk-pool-1" 5
27
- $volName1 = RandomString " pws-sdk-vol-1" 5
28
- $volName2 = RandomString " pws-sdk-vol-2" 5
24
+ $resourceGroup = " pws-sdk-tests-rg-1 "
25
+ $accName = " pws-sdk-acc-2"
26
+ $poolName = " pws-sdk-pool-1"
27
+ $volName1 = " pws-sdk-vol-1"
28
+ $volName2 = " pws-sdk-vol-2"
29
29
$gibibyte = 1024 * 1024 * 1024
30
30
$usageThreshold = 100 * $gibibyte
31
31
$doubleUsage = 2 * $usageThreshold
You can’t perform that action at this time.
0 commit comments