Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

henry416
Copy link
Member

@henry416 henry416 commented Jul 5, 2017

+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

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.
  • The pull request does not introduce breaking changes (unless a major version change occurs in the assembly and module).

Testing Guidelines

  • Pull request includes test coverage for the included changes.
  • PowerShell scripts used in tests should do any necessary setup as part of the test or suite setup, and should not use hard-coded values for locations or existing resources.

Cmdlet Signature Guidelines

  • New cmdlets that make changes or have side effects should implement ShouldProcess and have SupportShouldProcess=true specified in the cmdlet attribute. You can find more information on ShouldProcess here.
  • Cmdlet specifies OutputType attribute if any output is produced - if the cmdlet produces no output, it should implement a PassThru parameter.

Cmdlet Parameter Guidelines

  • Parameter types should not expose types from the management library - complex parameter types should be defined in the module.
  • Complex parameter types are discouraged - a parameter type should be simple types as often as possible. If complex types are used, they should be shallow and easily creatable from a constructor or another cmdlet.
  • Cmdlet parameter sets should be mutually exclusive - each parameter set must have at least one mandatory parameter not in other parameter sets.

@henry416
Copy link
Member Author

henry416 commented Jul 7, 2017

There might be some overlap with #4265 since that PR is updating to Network 11

@markcowl markcowl removed their assignment Jul 7, 2017
@henry416 henry416 closed this Jul 10, 2017
@henry416 henry416 reopened this Jul 10, 2017
@henry416 henry416 changed the base branch from preview to release-4.2.0 July 10, 2017 16:04
@cormacpayne
Copy link
Member

@azuresdkci test this please

@henry416
Copy link
Member Author

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" />
Copy link
Member

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

Copy link
Member

@cormacpayne cormacpayne left a 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]
Copy link
Member

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; }
Copy link
Member

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; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@henry416 same comment

@henry416
Copy link
Member Author

I apologize for the delay, I am having difficulties in getting the Network solution to run tests though it was working a day ago

@cormacpayne cormacpayne changed the base branch from release-4.2.0 to preview July 13, 2017 22:08
@cormacpayne
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants