-
Notifications
You must be signed in to change notification settings - Fork 7
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
CDPCAM-71 Add Private Subnets validation with 'Auto-assign public IPs' disabled #22
Conversation
Signed-off-by: Anurag Patro <[email protected]>
@mahendra-rk @aakanser @wonderslug |
I think the test is probably fine. But we are introducing warnings as well as failures and I think this is a good candidate to be a warning since I don't think it would actually effect of the provisioning of an environment fails or not. Maybe we can just hold onto this till we get warning in in the next week or so and rebase and update it then? |
@anuragpatro Ok Warn and the new issues system is now in place in dev. If you can please rebase against dev and see the other validations for how the issues are being presented now with the fail and the warn functions. In order to get your Issue which you add to the issue_templates.yml file, you need to run the scripts/update_issue_templates.py. This will add a const for the issue in the issues.py to use for references. |
* CDPCAM-48, CDPCAM-43: Custom output and links to docs. This commits provides the capability to do different output types (tex and json for now) and provides the different issues encountered with the ability to have links and different formatting. It does this through centralizing the Issue messages into issue_templates.yml files which get loaded at runtime to present the issues to the renderers. The renderers pick the formatting mechanism defined by the render_type in the issue_templates.yml. The issue ids can be generated into constants using the scripts/update_issue_templates.py script. This will also be run during the pre-commit. Signed-off-by: Brian Towles <[email protected]>
This commits adds more links to the issue_templates.yml files. Signed-off-by: Brian Towles <[email protected]>
This commit adds warnings support in the validations output as well for the testing. It also changes some experience specific validations to warnings. Signed-off-by: Brian Towles <[email protected]>
Signed-off-by: Anurag Patro <[email protected]>
Made the necessary changes, please review. |
Codecov Report
@@ Coverage Diff @@
## dev #22 +/- ##
==========================================
+ Coverage 70.27% 70.37% +0.09%
==========================================
Files 27 27
Lines 1228 1249 +21
==========================================
+ Hits 863 879 +16
- Misses 365 370 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Looks like a couple of minor lint and isort issues. If you can please fix we can get these in. You can check these locally before you commit by doing a pre-commit run --all inside the dev container terminal. Other then that looking good. Not sure why there is the DCO issue. |
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.
LGTM!
Please run lint and add necessary fixes |
Signed-off-by: Anurag Patro <[email protected]>
Thanks for the validation! |
Signed-off-by: Anurag Patro [email protected]
Private Subnets required 'Auto-assign public IPs' option to be disabled since we are following a 'fully private' configuration for network architecture. Adding validation and tests for the same.
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_validation_failure PASSED [ 7%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_suffix_validation_success PASSED [ 10%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_suffix_validation_failure PASSED [ 14%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_availablity_zone_validation_success PASSED [ 17%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_availablity_zone_validation_failure PASSED [ 21%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_route_validation_success PASSED [ 25%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_route_validation_failure PASSED [ 28%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_range_validation_success PASSED [ 32%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_range_validation_failure PASSED [ 35%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_tags_validation_success PASSED [ 39%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_public_subnets_tags_validation_failure PASSED [ 42%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_validation_success PASSED [ 46%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_validation_failure PASSED [ 50%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_suffix_validation_success PASSED [ 53%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_suffix_validation_failure PASSED [ 57%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_availablity_zone_validation_success PASSED [ 60%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_availablity_zone_validation_failure PASSED [ 64%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_route_validation_success PASSED [ 67%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_route_validation_failure PASSED [ 71%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_range_validation_success PASSED [ 75%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_range_validation_failure PASSED [ 78%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_tags_validation_success PASSED [ 82%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_tags_validation_failure PASSED [ 85%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_auto_assign_ip_validation_success PASSED [ 89%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_private_subnets_auto_assign_ip_validation_failure PASSED [ 92%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_vpc_validation_success PASSED [ 96%]
tests/validation/infra/test_validate_aws_subnets.py::test_aws_vpc_validation_failure PASSED [100%]
=====================28 passed in 0.60s ===============================