Skip to content

Commit

Permalink
network, bug fix on private link service (#1290)
Browse files Browse the repository at this point in the history
* network, bug fix on private link service

* record

* update codeowner
  • Loading branch information
weidongxu-microsoft authored Jan 21, 2022
1 parent f48ecf3 commit 2aeabc2
Show file tree
Hide file tree
Showing 4 changed files with 1,043 additions and 688 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @ChenTanyi @weidongxu-microsoft @yungezz
* @weidongxu-microsoft @haolingdong-msft @azure/azure-fluentsdk
6 changes: 6 additions & 0 deletions Tests/Fluent.Tests/Network/PrivateLinkServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.Azure.Management.Network.Fluent.Models;
using Microsoft.Azure.Management.ResourceManager.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent.Core;
using System.Linq;
using Xunit;

namespace Fluent.Tests.Network
Expand Down Expand Up @@ -88,6 +89,11 @@ public void CanCreateUpdate()
Assert.False(privateLinkService.IsProxyProtocolEnabled);
Assert.True(privateLinkService.LoadBalancerFrontendIpConfigurations.Count == 1);

privateLinkService = azure.PrivateLinkServices.GetByResourceGroup(rgName, plsName);
Assert.Equal("myFrontEnd", privateLinkService.LoadBalancerFrontendIpConfigurations.First().Name);
Assert.Equal("myHttpRule", privateLinkService.LoadBalancerFrontendIpConfigurations.First().LoadBalancingRules["myHttpRule"].Name);

privateLinkService = azure.PrivateLinkServices.GetByResourceGroup(rgName, plsName);
privateLinkService.Update()
.EnableProxyProtocol()
.UpdatePrivateLinkServiceIpConfiguration("myPrivateIPConfig")
Expand Down
Loading

0 comments on commit 2aeabc2

Please sign in to comment.