@@ -534,7 +534,7 @@ function Test-DataLakeAnalyticsCatalog
534
534
$found = $false
535
535
foreach ($item in $itemList )
536
536
{
537
- if ($item.DatabaseName -eq $databaseName )
537
+ if ($item.Name -eq $databaseName )
538
538
{
539
539
$found = $true
540
540
break
@@ -546,7 +546,7 @@ function Test-DataLakeAnalyticsCatalog
546
546
# retrieve the specific DB
547
547
$specificItem = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType Database - Path $databaseName
548
548
Assert-NotNull $specificItem " Could not retrieve the db by name"
549
- Assert-AreEqual $databaseName $specificItem.DatabaseName
549
+ Assert-AreEqual $databaseName $specificItem.Name
550
550
551
551
# retrieve the list of tables and ensure the created table is in it
552
552
$itemList = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType Table - Path " $databaseName .dbo"
@@ -557,7 +557,7 @@ function Test-DataLakeAnalyticsCatalog
557
557
$found = $false
558
558
foreach ($item in $itemList )
559
559
{
560
- if ($item.TableName -eq $tableName )
560
+ if ($item.Name -eq $tableName )
561
561
{
562
562
$found = $true
563
563
break
@@ -569,7 +569,7 @@ function Test-DataLakeAnalyticsCatalog
569
569
# retrieve the specific table
570
570
$specificItem = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType Table - Path " $databaseName .dbo.$tableName "
571
571
Assert-NotNull $specificItem " Could not retrieve the table by name"
572
- Assert-AreEqual $tableName $specificItem.TableName
572
+ Assert-AreEqual $tableName $specificItem.Name
573
573
574
574
# retrieve the list of table valued functions and ensure the created tvf is in it
575
575
$itemList = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType TableValuedFunction - Path " $databaseName .dbo"
@@ -580,7 +580,7 @@ function Test-DataLakeAnalyticsCatalog
580
580
$found = $false
581
581
foreach ($item in $itemList )
582
582
{
583
- if ($item.TvfName -eq $tvfName )
583
+ if ($item.Name -eq $tvfName )
584
584
{
585
585
$found = $true
586
586
break
@@ -592,7 +592,7 @@ function Test-DataLakeAnalyticsCatalog
592
592
# retrieve the specific TVF
593
593
$specificItem = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType TableValuedFunction - Path " $databaseName .dbo.$tvfName "
594
594
Assert-NotNull $specificItem " Could not retrieve the TVF by name"
595
- Assert-AreEqual $tvfName $specificItem.TvfName
595
+ Assert-AreEqual $tvfName $specificItem.Name
596
596
597
597
# retrieve the list of procedures and ensure the created procedure is in it
598
598
$itemList = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType Procedure - Path " $databaseName .dbo"
@@ -603,7 +603,7 @@ function Test-DataLakeAnalyticsCatalog
603
603
$found = $false
604
604
foreach ($item in $itemList )
605
605
{
606
- if ($item.ProcName -eq $procName )
606
+ if ($item.Name -eq $procName )
607
607
{
608
608
$found = $true
609
609
break
@@ -615,7 +615,7 @@ function Test-DataLakeAnalyticsCatalog
615
615
# retrieve the specific procedure
616
616
$specificItem = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType Procedure - Path " $databaseName .dbo.$procName "
617
617
Assert-NotNull $specificItem " Could not retrieve the procedure by name"
618
- Assert-AreEqual $procName $specificItem.ProcName
618
+ Assert-AreEqual $procName $specificItem.Name
619
619
620
620
# retrieve the list of views and ensure the created view is in it
621
621
$itemList = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType View - Path " $databaseName .dbo"
@@ -626,7 +626,7 @@ function Test-DataLakeAnalyticsCatalog
626
626
$found = $false
627
627
foreach ($item in $itemList )
628
628
{
629
- if ($item.ViewName -eq $viewName )
629
+ if ($item.Name -eq $viewName )
630
630
{
631
631
$found = $true
632
632
break
@@ -638,7 +638,7 @@ function Test-DataLakeAnalyticsCatalog
638
638
# retrieve the specific view
639
639
$specificItem = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType View - Path " $databaseName .dbo.$viewName "
640
640
Assert-NotNull $specificItem " Could not retrieve the view by name"
641
- Assert-AreEqual $viewName $specificItem.ViewName
641
+ Assert-AreEqual $viewName $specificItem.Name
642
642
643
643
# create the secret
644
644
$pw = ConvertTo-SecureString - String $secretPwd - AsPlainText - Force
@@ -674,7 +674,7 @@ function Test-DataLakeAnalyticsCatalog
674
674
$found = $false
675
675
foreach ($item in $itemList )
676
676
{
677
- if ($item.CredentialName -eq $credentialName )
677
+ if ($item.Name -eq $credentialName )
678
678
{
679
679
$found = $true
680
680
break
@@ -684,7 +684,7 @@ function Test-DataLakeAnalyticsCatalog
684
684
# retrieve the specific credential
685
685
$specificItem = Get-AzureRMDataLakeAnalyticsCatalogItem - AccountName $accountName - ItemType Credential - Path " $databaseName .$credentialName "
686
686
Assert-NotNull $specificItem " Could not retrieve the credential by name"
687
- Assert-AreEqual $credentialName $specificItem.CredentialName
687
+ Assert-AreEqual $credentialName $specificItem.Name
688
688
689
689
# credential job template
690
690
$credentialJobTemplate = @"
0 commit comments