-
Notifications
You must be signed in to change notification settings - Fork 267
Improve ec2-controller
e2e tests by validating resource data
#1235
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
Comments
Issues go stale after 90d of inactivity. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. |
/remove-lifecycle stale |
Issue #, if available: aws-controllers-k8s/community#1235 Description of changes: * Use `acktest.tags` assertions in e2e tests to accurately test for ACK tags and user-defined tags * Enhance existing tag tests by checking both server-side values as well as `Spec.Tags` values * Add hook code for `Instance` and `RouteTable` so ACK tags are not populated in `Spec` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issues go stale after 90d of inactivity. |
Issues go stale after 90d of inactivity. |
Stale issues rot after 30d of inactivity. |
Rotten issues close after 30d of inactivity. |
1 similar comment
Rotten issues close after 30d of inactivity. |
@ack-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Summary
The initial resources for
ec2-controller
did not ship with a lot of functionality-- mostly create/delete. The e2e tests reflect this behavior and only check for resource existence. In other words, user-provided data in the Spec is not validated against AWS. As we continue adding functionality toec2-controller
, we should also improve the tests to validate data in addition to existence.Note: Validating data in e2e tests will most likely be necessary for passing security reviews
Implementation
EC2Validator
class to add single-purpose methods (i.e.get_nat_gateway
) & removeassert
helpersassert
in e2e test methodsThe text was updated successfully, but these errors were encountered: