-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
VPN Client Protocols for Virtual Network Gateways #4251
Conversation
There might be some overlap with #4265 since that PR is updating to Network 11 |
@azuresdkci test this please |
I don't understand this error that the build is giving - it works fine on local |
@@ -489,6 +489,9 @@ | |||
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayConnectionTests\TestVirtualNetworkGatewayConnectionWithActiveAcitveGateway.json"> | |||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | |||
</None> | |||
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayTests\VirtualNetworkGatewayIkeV2Test.json" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henry416 try removing the forward slash at the end of this line before the closing angle bracket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henry416 a few comments
@@ -57,5 +57,11 @@ public void VirtualNetworkGatewayRouteApiTest() | |||
{ | |||
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayBgpRouteApi"); | |||
} | |||
|
|||
[Fact] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henry416 this should be a check-in test
MNM.VpnClientProtocol.SSTP, | ||
MNM.VpnClientProtocol.IkeV2)] | ||
[ValidateNotNullOrEmpty] | ||
public List<string> VpnClientProtocols { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henry416 this parameter should be renamed to VpnClientProtocol
. From the PowerShell Strongly Encouraged Developer Guidelines:
Avoid using plural names for parameters whose value is a single element. This includes parameters that take arrays or lists because the user might supply an array or list with only one element.
Plural parameter names should be used only in those cases where the value of the parameter is always a multiple-element value. In these cases, the cmdlet should verify that multiple elements are supplied, and the cmdlet should display a warning to the user if multiple elements are not supplied.
MNM.VpnClientProtocol.SSTP, | ||
MNM.VpnClientProtocol.IkeV2)] | ||
[ValidateNotNullOrEmpty] | ||
public List<string> VpnClientProtocols { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henry416 same comment
I apologize for the delay, I am having difficulties in getting the Network solution to run tests though it was working a day ago |
Closing this PR due to lack of activity. @henry416 feel free to reopen this issue when you are able to run the tests and resolve the feedback that was left. |
+Added VPN Client Protocols for Virtual Network Gateway (SSTP, IkeV2)
+Updated network nuget packages
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines