Skip to content

Commit 8d62464

Browse files
authored
Merge pull request #3152 from begoldsm/dev
ADL Updates to latest SDK in preparation for GA
2 parents 6335da5 + 9831043 commit 8d62464

File tree

65 files changed

+52045
-34629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+52045
-34629
lines changed

src/ResourceManager/DataLakeAnalytics/ChangeLog.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,14 @@
1717
* Overview of change #1
1818
- Additional information about change #1
1919
-->
20-
## Current Release
20+
## Current Release
21+
* Addition of Catalog CRUD cmdlets:
22+
- The following cmdlets are replacing Secret CRUD cmdlets. In the next release Secret CRUD cmdlets will be removed.
23+
- New-AzureRMDataLakeAnalyticsCatalogCredential
24+
- Set-AzureRMDataLakeAnalyticsCatalogCredential
25+
- Remove-AzureRMDataLakeAnalyticsCatalogCredential
26+
* Fixes for Get-AzureRMDataLakeAnalyticsCatalogItem
27+
- Better error messaging and support for invalid input
28+
* General help improvements
29+
- Clearer help for job operations
30+
- Fixed typos and incorrect examples

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/Commands.DataLakeAnalytics.Test.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@
6363
<Private>True</Private>
6464
</Reference>
6565
<Reference Include="Microsoft.Azure.Management.DataLake.Analytics, Version=0.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
66-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataLake.Analytics.0.12.0-preview\lib\net45\Microsoft.Azure.Management.DataLake.Analytics.dll</HintPath>
66+
<SpecificVersion>False</SpecificVersion>
67+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataLake.Analytics.0.12.6-preview\lib\net45\Microsoft.Azure.Management.DataLake.Analytics.dll</HintPath>
6768
<Private>True</Private>
6869
</Reference>
6970
<Reference Include="Microsoft.Azure.Management.DataLake.Store, Version=0.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7071
<SpecificVersion>False</SpecificVersion>
71-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataLake.Store.0.12.6-preview\lib\net45\Microsoft.Azure.Management.DataLake.Store.dll</HintPath>
72+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataLake.Store.0.12.8-preview\lib\net45\Microsoft.Azure.Management.DataLake.Store.dll</HintPath>
7273
<Private>True</Private>
7374
</Reference>
7475
<Reference Include="Microsoft.Azure.Management.ResourceManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/ScenarioTests/AdlaAliasTests.ps1

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,36 @@ function Test-DataLakeAnalyticsCatalog
751751
$result = Wait-AdlJob -AccountName $accountName -JobId $jobInfo.JobId
752752
Assert-AreEqual "Succeeded" $result.Result
753753

754+
# Create the credential using the new create credential cmdlet
755+
New-AdlCatalogCredential -AccountName $accountName -DatabaseName $databaseName -CredentialName $credentialName -Credential $secret -Uri "https://fakedb.contoso.com:443"
756+
757+
# retrieve the list of credentials and ensure the created credential is in it
758+
$itemList = Get-AdlCatalogItem -AccountName $accountName -ItemType Credential -Path $databaseName
759+
760+
Assert-NotNull $itemList "The credential list is null"
761+
762+
Assert-True {$itemList.count -gt 0} "The credential list is empty"
763+
$found = $false
764+
foreach($item in $itemList)
765+
{
766+
if($item.Name -eq $credentialName)
767+
{
768+
$found = $true
769+
break
770+
}
771+
}
772+
773+
# retrieve the specific credential
774+
$specificItem = Get-AdlCatalogItem -AccountName $accountName -ItemType Credential -Path "$databaseName.$credentialName"
775+
Assert-NotNull $specificItem "Could not retrieve the credential by name"
776+
Assert-AreEqual $credentialName $specificItem.Name
777+
778+
# Remove the credential
779+
Remove-AdlCatalogCredential -AccountName $accountName -DatabaseName $databaseName -Name $credentialName
780+
781+
# Verify that trying to get the credential fails
782+
Assert-Throws {Get-AdlCatalogItem -AccountName $accountName -ItemType Credential -Path "$databaseName.$credentialName"}
783+
754784
# delete the secret
755785
Remove-AdlCatalogSecret -AccountName $accountName -Name $secretName -DatabaseName $databaseName -Force
756786

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/ScenarioTests/AdlaTests.ps1

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,37 @@ function Test-DataLakeAnalyticsCatalog
751751
$jobInfo = Submit-AzureRmDataLakeAnalyticsJob -AccountName $accountName -Name "TestJobCredential" -Script $credentialJob
752752
$result = Wait-AzureRMDataLakeAnalyticsJob -AccountName $accountName -JobId $jobInfo.JobId
753753
Assert-AreEqual "Succeeded" $result.Result
754-
754+
755+
# Create the credential using the new create credential cmdlet
756+
New-AzureRMDataLakeAnalyticsCatalogCredential -AccountName $accountName -DatabaseName $databaseName -CredentialName $credentialName -Credential $secret -Uri "https://fakedb.contoso.com:443"
757+
758+
# retrieve the list of credentials and ensure the created credential is in it
759+
$itemList = Get-AzureRMDataLakeAnalyticsCatalogItem -AccountName $accountName -ItemType Credential -Path $databaseName
760+
761+
Assert-NotNull $itemList "The credential list is null"
762+
763+
Assert-True {$itemList.count -gt 0} "The credential list is empty"
764+
$found = $false
765+
foreach($item in $itemList)
766+
{
767+
if($item.Name -eq $credentialName)
768+
{
769+
$found = $true
770+
break
771+
}
772+
}
773+
774+
# retrieve the specific credential
775+
$specificItem = Get-AzureRMDataLakeAnalyticsCatalogItem -AccountName $accountName -ItemType Credential -Path "$databaseName.$credentialName"
776+
Assert-NotNull $specificItem "Could not retrieve the credential by name"
777+
Assert-AreEqual $credentialName $specificItem.Name
778+
779+
# Remove the credential
780+
Remove-AzureRmDataLakeAnalyticsCatalogCredential -AccountName $accountName -DatabaseName $databaseName -Name $credentialName
781+
782+
# Verify that trying to get the credential fails
783+
Assert-Throws {Get-AzureRMDataLakeAnalyticsCatalogItem -AccountName $accountName -ItemType Credential -Path "$databaseName.$credentialName"}
784+
755785
# delete the secret
756786
Remove-AzureRmDataLakeAnalyticsCatalogSecret -AccountName $accountName -Name $secretName -DatabaseName $databaseName -Force
757787

0 commit comments

Comments
 (0)