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

feat(ec2): add ICMPv6 protocol #20626

Merged
merged 2 commits into from
Jul 19, 2022
Merged

feat(ec2): add ICMPv6 protocol #20626

merged 2 commits into from
Jul 19, 2022

Conversation

philipmw
Copy link
Contributor

@philipmw philipmw commented Jun 6, 2022

This allows creation of a security group rule that permits
ICMPv6.

All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Jun 6, 2022

@aws-cdk-automation aws-cdk-automation requested a review from a team June 6, 2022 05:21
@github-actions github-actions bot added the p2 label Jun 6, 2022
Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. We cannot review PRs that do not include tests.

@philipmw
Copy link
Contributor Author

philipmw commented Jun 7, 2022

@TheRealAmazonKendra , my change has no logic. That file has no corresponding unit test file, and the surrounding (existing) methods have no unit tests. (Unless I missed them.) So, my PR is following the existing convention. Would you please reconsider? Else please advise on a meaningful unit test for this change.

@philipmw
Copy link
Contributor Author

@TheRealAmazonKendra - ping.

@corymhall corymhall changed the title chore(aws-ec2): add ICMPv6 protocol method feat(aws-ec2): add ICMPv6 protocol method Jun 13, 2022
@TheRealAmazonKendra TheRealAmazonKendra changed the title feat(aws-ec2): add ICMPv6 protocol method feat(ec2): add ICMPv6 protocol Jun 14, 2022
Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

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

The addition of new functions must always have tests. We shouldn't have approved these in the past without them. We need to ensure that the template generated as a result of this function is what you expect it to be. Note that the linter will also fail if no README update is made as well. Port Ranges should be updated to reflect this change.

@philipmw
Copy link
Contributor Author

Thanks, @TheRealAmazonKendra . I updated the PR with a new unit test and an updated README.

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review June 16, 2022 17:28

Pull request has been modified.

@philipmw philipmw changed the title feat(ec2): add ICMPv6 protocol chore(ec2): add ICMPv6 protocol Jun 16, 2022
@TheRealAmazonKendra TheRealAmazonKendra changed the title chore(ec2): add ICMPv6 protocol feat(ec2): add ICMPv6 protocol Jun 20, 2022
describe('Port class', () => {
describe('.allIcmpV6', () => {
it('returns expected instance of Port', () => {
expect(Port.allIcmpV6()).toEqual(new Port({
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's check this against the template generated, not against the data structure itself.

@TheRealAmazonKendra
Copy link
Contributor

This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week.

This allows creation of a security group rule that permits
ICMPv6.
Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

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

My apologies for not being more clear on what I was asking for in the test. A unit test comparing the output to the produced template would have been sufficient but this is great too. It was probably just more work for you than I intended.

Still, thanks for your hard work on this and for contributing!

@mergify
Copy link
Contributor

mergify bot commented Jul 19, 2022

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 4d1dbac
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 99831b0 into aws:main Jul 19, 2022
@mergify
Copy link
Contributor

mergify bot commented Jul 19, 2022

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

comcalvi pushed a commit to comcalvi/aws-cdk that referenced this pull request Jul 25, 2022
This allows creation of a security group rule that permits
ICMPv6.
----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants