Skip to content

Commit 94afd12

Browse files
committed
Fixing trailing slash behavior
1 parent 6f90476 commit 94afd12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ResourceManager/Profile/Commands.Profile.Test/EnvironmentCmdletTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public void CanCreateEnvironmentWithAllProperties()
397397
cmdlet.InvokeEndProcessing();
398398
Assert.Equal(cmdlet.Name, actual.Name);
399399
Assert.Equal(cmdlet.EnableAdfsAuthentication.ToBool(), actual.EnableAdfsAuthentication);
400-
Assert.Equal(cmdlet.ActiveDirectoryEndpoint, actual.ActiveDirectoryAuthority, StringComparer.OrdinalIgnoreCase);
400+
Assert.Equal(cmdlet.ActiveDirectoryEndpoint + "/", actual.ActiveDirectoryAuthority, StringComparer.OrdinalIgnoreCase);
401401
Assert.Equal(cmdlet.ActiveDirectoryServiceEndpointResourceId + "/",
402402
actual.ActiveDirectoryServiceEndpointResourceId);
403403
Assert.Equal(cmdlet.AdTenant, actual.AdTenant);

src/ResourceManager/Profile/Commands.Profile/Environment/AddAzureRMEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public override void ExecuteCmdlet()
250250
SetEndpointIfBound(newEnvironment, AzureEnvironment.Endpoint.StorageEndpointSuffix,
251251
nameof(StorageEndpoint));
252252
SetEndpointIfBound(newEnvironment, AzureEnvironment.Endpoint.ActiveDirectory,
253-
nameof(ActiveDirectoryEndpoint));
253+
nameof(ActiveDirectoryEndpoint), true);
254254

255255
SetEndpointIfBound(newEnvironment,
256256
AzureEnvironment.Endpoint.ActiveDirectoryServiceEndpointResourceId,

0 commit comments

Comments
 (0)