Skip to content

bringing Asr one sdk azure- master in sync with master branch for azure/azure-powershell #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1cc74ba
Updated Set-AzExpressRouteGateway to allow either one of `-MinScaleUn…
nimaller Feb 10, 2021
fa0dbb5
Connection Mode Support for VPN Link Connections (#14183)
abhi7860 Feb 19, 2021
f9b29c5
Merge branch master into network-november
dingmeng-xue Feb 20, 2021
22d76ee
Merge pull request #14258 from dingmeng-xue/network-november
VeryEarly Feb 22, 2021
5816106
Support to Get IKE Security Associations for VPN Site Link Connection…
abhi7860 Feb 22, 2021
814d3ba
Support Reset connection for VNG and Vwan (#14225)
akshatkale Feb 25, 2021
8646e3e
Vwan :update test add recording (#14429)
neethirshetty Mar 4, 2021
e71b8e4
Updated api version for officially published one (#14459)
MikhailTryakhov Mar 6, 2021
00f5bae
VNG multi Auth support (#14441)
neethirshetty Mar 10, 2021
e6fb94c
Add TrafficSelectorPolicy param in VpnConnection for VWAN (#14354)
akshatkale Mar 10, 2021
02139d2
Fix help documentation for Reset-AzVirtualNetworkGatewayConnection an…
akshatkale Mar 13, 2021
9181ba9
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
wyunchi-ms Mar 15, 2021
2bd5767
Merge pull request #14546 from Azure/wyunchi/merge/network-november
wyunchi-ms Mar 15, 2021
f1c2d8f
Mitryakh/network november release (#14550)
MikhailTryakhov Mar 16, 2021
93beeb8
Fix invalid SAS token from New-AzServiceBusAuthorizationRuleSASToken …
fsackur Mar 16, 2021
3bb82d7
[Automation]Rollback the implement of json convert of automation. (#1…
wyunchi-ms Mar 16, 2021
8ec95a6
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
wyunchi-ms Mar 16, 2021
98bec11
Azure Firewall - Data PIP removal for FT firewal (#14138)
tinawu6 Mar 16, 2021
1052262
[CosmosDb] Fix the issue of CosmosDb signature (#14557)
wyunchi-ms Mar 16, 2021
e9d57b6
Merge from Az.Automation 1.5.1 release
dingmeng-xue Mar 16, 2021
b1ffc97
Merge pull request #14539 from Azure/network-november
wyunchi-ms Mar 16, 2021
7e754cb
Polish changelog for upcoming release (#14559)
dingmeng-xue Mar 16, 2021
fa42dd3
Replace myget with Azure artifacts (#14543)
dingmeng-xue Mar 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<clear/>
<!-- Do not add any additional feeds if new packages are needed they need to come from nuget.org or our azure-sdk-for-net DevOps feed -->
<add key="local-feed" value="tools/LocalFeed" />
<add key="myget-azure-powershell" value="https://www.myget.org/F/azure-powershell/api/v3/index.json" />
<add key="azure-powershell" value="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-powershell/nuget/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<disabledPackageSources>
Expand Down
56 changes: 12 additions & 44 deletions src/Automation/Automation.Test/ScenarioTests/VariableTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -177,23 +177,15 @@ function Test-ArrayVariable
-value $variableValue `
-Encrypted:$false `
-Description "array"
Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString()

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName
Assert-AreEqual ($variableValue | ConvertTo-Json -Compress -Depth 2) ($variableCreated.value | ConvertTo-Json -Compress -Depth 2)

Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
$updateVariable = Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-Name $variableName `
-Encrypted:$false `
-value $variableValueUpdated

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName

Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString()
Assert-AreEqual ($variableValueUpdated | ConvertTo-Json -Compress -Depth 2) ($updateVariable.value | ConvertTo-Json -Compress -Depth 2)

Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
Expand Down Expand Up @@ -225,23 +217,15 @@ function Test-NormalHashTableVariable
-value $variableValue `
-Encrypted:$false `
-Description "NormalHashTableVariable"
Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString()

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName
Assert-AreEqual ($variableValue | ConvertTo-Json -Compress -Depth 2) ($variableCreated.value | ConvertTo-Json -Compress -Depth 2)

Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
$updateVariable = Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-Name $variableName `
-Encrypted:$false `
-value $variableValueUpdated

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName

Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString()
Assert-AreEqual ($variableValueUpdated | ConvertTo-Json -Compress -Depth 2) ($updateVariable.value | ConvertTo-Json -Compress -Depth 2)

Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
Expand Down Expand Up @@ -273,23 +257,15 @@ function Test-MultiLevelDictVariable
-value $variableValue `
-Encrypted:$false `
-Description "MultiLevelDict"
Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString()

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName
Assert-AreEqual ($variableValue | ConvertTo-Json -Compress -Depth 2) ($variableCreated.value | ConvertTo-Json -Compress -Depth 2)

Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
$updateVariable = Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-Name $variableName `
-Encrypted:$false `
-value $variableValueUpdated

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName

Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString()
Assert-AreEqual ($variableValueUpdated | ConvertTo-Json -Compress -Depth 2) ($updateVariable.value | ConvertTo-Json -Compress -Depth 2)

Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
Expand Down Expand Up @@ -321,23 +297,15 @@ function Test-JsonInDictValueVariable
-value $variableValue `
-Encrypted:$false `
-Description "JsonInDictValue"
Assert-AreEqual ($variableValue | ConvertTo-Json) $variableCreated.value.toString()

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName
Assert-AreEqual ($variableValue | ConvertTo-Json -Compress -Depth 2) ($variableCreated.value | ConvertTo-Json -Compress -Depth 2)

Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
$updateVariable = Set-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-Name $variableName `
-Encrypted:$false `
-value $variableValueUpdated

$getVariable = Get-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-name $variableName

Assert-AreEqual ($variableValueUpdated | ConvertTo-Json) $getVariable.value.toString()
Assert-AreEqual ($variableValueUpdated | ConvertTo-Json -Compress -Depth 2) ($updateVariable.value | ConvertTo-Json -Compress -Depth 2)

Remove-AzAutomationVariable -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
Expand Down
Loading