File tree Expand file tree Collapse file tree 5 files changed +57
-1
lines changed
Commands.Common.ScenarioTest Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ Param (
2
+ [string ]$resourceGroupName ,
3
+ [string ]$resourceGroupLocation
4
+ )
5
+
6
+ Write-Host " Skip"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+ printf " \n=== Managing Virtual Machine Sizes in Azure Compute ===\n"
4
+
5
+ printf " \n1. Showing VM size results in location: %s.\n" " $location "
6
+ azure vmsize get --location " $location "
7
+
8
+ printf " \n2. Checking VM size results in location: %s.\n" " $location "
9
+ vmSizeResult=` azure vmsize get --location " $location " `
10
+
11
+ if [[ $vmSizeResult == " " ]]; then
12
+ echo " Failure: No VM sizes!" 1>&2
13
+ exit 1
14
+ else
15
+ echo " Success: Non-empty Results."
16
+ fi
17
+
18
+ filterResult=` azure vmsize get --location " $location " | cat | jq ' select(.name | contains("Standard_A0"))' --raw-output`
19
+ if [[ " $filterResult " == " " ]]; then
20
+ echo " Failure: Standard_A0 vm size not found." 1>&2
21
+ exit 1
22
+ else
23
+ echo " Success: Standard_A0 vm size found."
24
+ fi
25
+
26
+ filterResult=` azure vmsize get --location " $location " | cat | jq ' select(.name | contains("Standard_G1"))' --raw-output`
27
+ if [[ " $filterResult " == " " ]]; then
28
+ echo " Failure: Standard_G1 vm size not found." 1>&2
29
+ exit 1
30
+ else
31
+ echo " Success: Standard_G1 vm size found."
32
+ fi
33
+
34
+ filterResult=` azure vmsize get --location " $location " | cat | jq ' select(.name | contains("NonStandard_A1"))' --raw-output`
35
+ if [[ " $filterResult " == " " ]]; then
36
+ echo " Success: NonStandard_A1 vm size not found."
37
+ else
38
+ echo " Failure: NonStandard_A1 vm size found." 1>&2
39
+ exit 1
40
+ fi
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ azure vhd save -o --resourcegroupname "$groupName" --sourceuri https://"$storage
16
16
17
17
printf " \n5. Validating the downloaded file is the same.\n"
18
18
diffResult=` diff ./test_downloaded_by_clu.vhd $BASEDIR /test_uploaded_byps.vhd`
19
+ printf " Difference Result = '%s'.\n" " $diffResult "
19
20
if [ " $diffResult " = " " ]; then
20
21
echo " Checked"
21
22
else
Original file line number Diff line number Diff line change @@ -45,5 +45,12 @@ public void VirtualHardDisksTest()
45
45
var helper = _collectionState . GetRunner ( "virtual-hard-disk" ) ;
46
46
helper . RunScript ( "01-VirtualHardDisks" ) ;
47
47
}
48
+
49
+ [ Fact ]
50
+ public void VirtualMachineSizeTest ( )
51
+ {
52
+ var helper = _collectionState . GetRunner ( "compute-management" ) ;
53
+ helper . RunScript ( "01-VirtualMachineSizes" ) ;
54
+ }
48
55
}
49
56
}
Original file line number Diff line number Diff line change @@ -300,7 +300,9 @@ private static Mutex AcquireSingleInstanceMutex(Uri destinationBlobUri)
300
300
Mutex singleInstanceMutex = null ;
301
301
try
302
302
{
303
- singleInstanceMutex = new Mutex ( false , @"Global\" + mutexName ) ;
303
+ // TODO: CLU
304
+ singleInstanceMutex = new Mutex ( false ) ;
305
+ //singleInstanceMutex = new Mutex(false, @"Global\" + mutexName);
304
306
// TODO: CLU
305
307
if ( ! singleInstanceMutex . WaitOne ( TimeSpan . FromSeconds ( 5 ) ) )
306
308
//if (!singleInstanceMutex.WaitOne(TimeSpan.FromSeconds(5), false))
You can’t perform that action at this time.
0 commit comments