@@ -38,7 +38,7 @@ function Test-DataLakeAnalyticsAccount
38
38
for ($i = 0 ; $i -le 60 ; $i ++ )
39
39
{
40
40
[array ]$accountGet = Get-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName
41
- if ($accountGet [0 ].Properties. ProvisioningState -like " Succeeded" )
41
+ if ($accountGet [0 ].ProvisioningState -like " Succeeded" )
42
42
{
43
43
Assert-AreEqual $accountName $accountGet [0 ].Name
44
44
Assert-AreEqual $location $accountGet [0 ].Location
@@ -47,7 +47,7 @@ function Test-DataLakeAnalyticsAccount
47
47
break
48
48
}
49
49
50
- Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].Properties. ProvisioningState) "
50
+ Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].ProvisioningState) "
51
51
[Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities ]::Wait(30000 )
52
52
Assert-False {$i -eq 60 } " dataLakeAnalytics account is not in succeeded state even after 30 min."
53
53
}
@@ -111,7 +111,7 @@ function Test-DataLakeAnalyticsAccount
111
111
112
112
# get the account and ensure that it contains two data lake stores
113
113
$testStoreAdd = Get-AdlAnalyticsAccount - Name $accountName
114
- Assert-AreEqual 2 $testStoreAdd.Properties. DataLakeStoreAccounts.Count
114
+ Assert-AreEqual 2 $testStoreAdd.DataLakeStoreAccounts.Count
115
115
116
116
# get the specific data source added
117
117
$adlsAccountInfo = Get-AdlAnalyticsDataSource - Account $accountName - DataLakeStore $secondDataLakeAccountName
@@ -126,14 +126,14 @@ function Test-DataLakeAnalyticsAccount
126
126
127
127
# get the account and ensure that it contains one data lake store
128
128
$testStoreAdd = Get-AdlAnalyticsAccount - Name $accountName
129
- Assert-AreEqual 1 $testStoreAdd.Properties. DataLakeStoreAccounts.Count
129
+ Assert-AreEqual 1 $testStoreAdd.DataLakeStoreAccounts.Count
130
130
131
131
# add a blob account to the analytics account
132
132
Add-AdlAnalyticsDataSource - Account $accountName - Blob $blobAccountName - AccessKey $blobAccountKey
133
133
134
134
# get the account and ensure that it contains one blob account
135
135
$testStoreAdd = Get-AdlAnalyticsAccount - Name $accountName
136
- Assert-AreEqual 1 $testStoreAdd.Properties. StorageAccounts.Count
136
+ Assert-AreEqual 1 $testStoreAdd.StorageAccounts.Count
137
137
138
138
# get the specific data source added
139
139
$blobAccountInfo = Get-AdlAnalyticsDataSource - Account $accountName - Blob $blobAccountName
@@ -148,7 +148,7 @@ function Test-DataLakeAnalyticsAccount
148
148
149
149
# get the account and ensure that it contains no azure storage accounts
150
150
$testStoreAdd = Get-AdlAnalyticsAccount - Name $accountName
151
- Assert-True {$testStoreAdd.Properties. StorageAccounts -eq $null -or $testStoreAdd.Properties .StorageAccounts.Count -eq 0 } " Remove blob storage reported success but failed to remove the account."
151
+ Assert-True {$testStoreAdd.StorageAccounts -eq $null -or $testStoreAdd.StorageAccounts.Count -eq 0 } " Remove blob storage reported success but failed to remove the account."
152
152
153
153
# Delete dataLakeAnalytics account
154
154
Assert-True {Remove-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName - Force - PassThru} " Remove Account failed."
@@ -240,7 +240,7 @@ function Test-DataLakeAnalyticsJob
240
240
New-AzureRmResourceGroup - Name $resourceGroupName - Location $location
241
241
New-AdlStore - ResourceGroupName $resourceGroupName - Name $dataLakeAccountName - Location $location
242
242
$accountCreated = New-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName - Location $location - DefaultDataLakeStore $dataLakeAccountName
243
- $nowTime = $accountCreated.Properties. CreationTime
243
+ $nowTime = $accountCreated.CreationTime
244
244
Assert-AreEqual $accountName $accountCreated.Name
245
245
Assert-AreEqual $location $accountCreated.Location
246
246
Assert-AreEqual " Microsoft.DataLakeAnalytics/accounts" $accountCreated.Type
@@ -250,7 +250,7 @@ function Test-DataLakeAnalyticsJob
250
250
for ($i = 0 ; $i -le 60 ; $i ++ )
251
251
{
252
252
[array ]$accountGet = Get-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName
253
- if ($accountGet [0 ].Properties. ProvisioningState -like " Succeeded" )
253
+ if ($accountGet [0 ].ProvisioningState -like " Succeeded" )
254
254
{
255
255
Assert-AreEqual $accountName $accountGet [0 ].Name
256
256
Assert-AreEqual $location $accountGet [0 ].Location
@@ -259,7 +259,7 @@ function Test-DataLakeAnalyticsJob
259
259
break
260
260
}
261
261
262
- Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].Properties. ProvisioningState) "
262
+ Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].ProvisioningState) "
263
263
[Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities ]::Wait(30000 )
264
264
Assert-False {$i -eq 60 } " dataLakeAnalytics accounts not in succeeded state even after 30 min."
265
265
}
@@ -342,7 +342,7 @@ function Test-NegativeDataLakeAnalyticsAccount
342
342
for ($i = 0 ; $i -le 60 ; $i ++ )
343
343
{
344
344
[array ]$accountGet = Get-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName
345
- if ($accountGet [0 ].Properties. ProvisioningState -like " Succeeded" )
345
+ if ($accountGet [0 ].ProvisioningState -like " Succeeded" )
346
346
{
347
347
Assert-AreEqual $accountName $accountGet [0 ].Name
348
348
Assert-AreEqual $location $accountGet [0 ].Location
@@ -351,7 +351,7 @@ function Test-NegativeDataLakeAnalyticsAccount
351
351
break
352
352
}
353
353
354
- Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].Properties. ProvisioningState) "
354
+ Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].ProvisioningState) "
355
355
[Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities ]::Wait(30000 )
356
356
Assert-False {$i -eq 60 } " dataLakeAnalytics accounts not in succeeded state even after 30 min."
357
357
}
@@ -405,7 +405,7 @@ function Test-NegativeDataLakeAnalyticsJob
405
405
New-AzureRmResourceGroup - Name $resourceGroupName - Location $location
406
406
New-AdlStore - ResourceGroupName $resourceGroupName - Name $dataLakeAccountName - Location $location
407
407
$accountCreated = New-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName - Location $location - DefaultDataLakeStore $dataLakeAccountName
408
- $nowTime = $accountCreated.Properties. CreationTime
408
+ $nowTime = $accountCreated.CreationTime
409
409
Assert-AreEqual $accountName $accountCreated.Name
410
410
Assert-AreEqual $location $accountCreated.Location
411
411
Assert-AreEqual " Microsoft.DataLakeAnalytics/accounts" $accountCreated.Type
@@ -415,7 +415,7 @@ function Test-NegativeDataLakeAnalyticsJob
415
415
for ($i = 0 ; $i -le 60 ; $i ++ )
416
416
{
417
417
[array ]$accountGet = Get-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName
418
- if ($accountGet [0 ].Properties. ProvisioningState -like " Succeeded" )
418
+ if ($accountGet [0 ].ProvisioningState -like " Succeeded" )
419
419
{
420
420
Assert-AreEqual $accountName $accountGet [0 ].Name
421
421
Assert-AreEqual $location $accountGet [0 ].Location
@@ -424,7 +424,7 @@ function Test-NegativeDataLakeAnalyticsJob
424
424
break
425
425
}
426
426
427
- Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].Properties. ProvisioningState) "
427
+ Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].ProvisioningState) "
428
428
[Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities ]::Wait(30000 )
429
429
Assert-False {$i -eq 60 } " dataLakeAnalytics accounts not in succeeded state even after 30 min."
430
430
}
@@ -495,7 +495,7 @@ function Test-DataLakeAnalyticsCatalog
495
495
for ($i = 0 ; $i -le 60 ; $i ++ )
496
496
{
497
497
[array ]$accountGet = Get-AdlAnalyticsAccount - ResourceGroupName $resourceGroupName - Name $accountName
498
- if ($accountGet [0 ].Properties. ProvisioningState -like " Succeeded" )
498
+ if ($accountGet [0 ].ProvisioningState -like " Succeeded" )
499
499
{
500
500
Assert-AreEqual $accountName $accountGet [0 ].Name
501
501
Assert-AreEqual $location $accountGet [0 ].Location
@@ -504,7 +504,7 @@ function Test-DataLakeAnalyticsCatalog
504
504
break
505
505
}
506
506
507
- Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].Properties. ProvisioningState) "
507
+ Write-Host " account not yet provisioned. current state: $ ( $accountGet [0 ].ProvisioningState) "
508
508
[Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities ]::Wait(30000 )
509
509
Assert-False {$i -eq 60 } " dataLakeAnalytics accounts not in succeeded state even after 30 min."
510
510
}
0 commit comments