Skip to content

Commit 1549fb5

Browse files
Merge branch 'master' into ayelet
2 parents f8df705 + 8a1450d commit 1549fb5

File tree

39 files changed

+12770
-5664
lines changed

39 files changed

+12770
-5664
lines changed

src/Advisor/Advisor/ChangeLog.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
12
<!--
23
Please leave this section at the top of the change log.
34
4-
Changes for the current release should go under the section titled "Current Release", and should adhere to the following format:
5+
Changes for the upcoming release should go under the section titled "Upcoming Release", and should adhere to the following format:
56
6-
## Current Release
7+
## Upcoming Release
78
* Overview of change #1
89
- Additional information about change #1
910
* Overview of change #2
@@ -17,14 +18,14 @@
1718
* Overview of change #1
1819
- Additional information about change #1
1920
-->
20-
2121
## Upcoming Release
22+
* Updated utils to be extensible for future changes
2223

2324
## Version 0.1.0
24-
*Added new cmdlets for Advisor Recommendation
25+
* Added new cmdlets for Advisor Recommendation
2526
- Get-AzAdvisorRecommendation
2627
- Enable-AzAdvisorRecommendation
2728
- Disable-AzAdvisorRecommendation
28-
*Added new cmdlets for Advisor Configuration
29+
* Added new cmdlets for Advisor Configuration
2930
- Get-AzAdvisorConfiguration
3031
- Set-AzAdvisorConfiguration

src/Advisor/Advisor/Cmdlets/Utilities/RecommendationHelper.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ public static class RecommendationHelper
3535
/// </summary>
3636
private const int RESOURCEGROUP_VALUE_POSITION = 4;
3737

38-
/// <summary>
39-
/// Position of recommendation-Id string in resource ID
40-
/// </summary>
41-
private const int RECOMMENDATION_STRING_POSITION = 11;
42-
43-
/// <summary>
44-
/// Position of recommendation-Id value in resource ID
45-
/// </summary>
46-
private const int RECOMMENDATION_VALUE_POSITION = 12;
47-
4838
/// <summary>
4939
/// Filter recommendations by given category and resourceGroup name.
5040
/// </summary>
@@ -205,9 +195,9 @@ public static string GetRecommendationIdFromResourceID(string resourceID)
205195
string recommendationId = string.Empty;
206196
string[] resourceIdSplit = resourceID.Split('/');
207197

208-
if (resourceIdSplit[RECOMMENDATION_STRING_POSITION].Equals("recommendations"))
198+
if (resourceIdSplit[resourceIdSplit.Length - 2].Equals("recommendations"))
209199
{
210-
recommendationId = resourceIdSplit[RECOMMENDATION_VALUE_POSITION];
200+
recommendationId = resourceIdSplit[resourceIdSplit.Length - 1];
211201
}
212202

213203
return recommendationId;

src/DataLakeStore/DataLakeStore/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Update the ADLS sdk to use httpclient, integrate dataplane testing with azure framework
2122

2223
## Version 1.2.0
2324
* Updated cmdlets with plural nouns to singular, and deprecated plural names.

src/PrivateDns/PrivateDns.Test/ScenarioTests/ZoneTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ public void TestZoneNewAlreadyExists()
9191
PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneNewAlreadyExists");
9292
}
9393

94+
[Fact]
95+
[Trait(Category.AcceptanceType, Category.CheckIn)]
96+
public void TestZoneNewWithLocalSuffix()
97+
{
98+
PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneNewWithLocalSuffix");
99+
}
100+
94101
[Fact()]
95102
[Trait(Category.AcceptanceType, Category.CheckIn)]
96103
public void TestZoneSetEtagMismatch()

src/PrivateDns/PrivateDns.Test/ScenarioTests/ZoneTests.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,26 @@ function Test-ZoneNewAlreadyExists
187187
Remove-AzResourceGroup -Name $resourceGroupName -Force
188188
}
189189

190+
<#
191+
.SYNOPSIS
192+
Test zone creation with .local suffix.
193+
#>
194+
function Test-ZoneNewWithLocalSuffix
195+
{
196+
$zoneName = Get-RandomZoneName
197+
$zoneName = $zoneName + ".local"
198+
$resourceGroup = TestSetup-CreateResourceGroup
199+
$resourceGroupName = $resourceGroup.ResourceGroupName
200+
$createdZone = New-AzPrivateDnsZone -Name $zoneName -ResourceGroupName $resourceGroupName -WarningVariable warnings
201+
202+
Assert-NotNull $createdZone
203+
$message = "Please be aware that DNS names ending with .local are reserved for use with multicast DNS and may not work as expected with some operating systems. For details refer to your operating systems documentation."
204+
Assert-AreEqual $message $warnings
205+
206+
$createdZone | Remove-AzPrivateDnsZone -PassThru -Confirm:$false
207+
Remove-AzResourceGroup -Name $resourceGroupName -Force
208+
}
209+
190210
<#
191211
.SYNOPSIS
192212
Test zone update when etags mismatch

0 commit comments

Comments
 (0)