Skip to content

Conversation

@a-hilaly
Copy link
Member

Add integration tests that verify the core reconciliation lifecycle using the
envtest framework with a fake AWS resource manager. Inspired by kro's testing
approach, the tests validate CREATE, UPDATE, and DELETE operations, asserting
precise API call counts and operation sequences. This follows the same patterns
used by real ACK controllers like s3-controller, using BindControllerManager to
wire up the reconciler properly.

The test infrastructure includes a fake DynamoDB Table resource with realistic
fields (ProvisionedThroughput, SSESpecification, Tags, etc.) and a delta
comparison implementation matching the code-generated patterns in ACK
controllers. This provides a foundation for testing runtime behavior changes
without requiring actual AWS API calls or a real controller codebase.

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

Add integration tests that verify the core reconciliation lifecycle using the
envtest framework with a fake AWS resource manager. Inspired by kro's testing
approach, the tests validate CREATE, UPDATE, and DELETE operations, asserting
precise API call counts and operation sequences. This follows the same patterns
used by real ACK controllers like s3-controller, using BindControllerManager to
wire up the reconciler properly.

The test infrastructure includes a fake DynamoDB Table resource with realistic
fields (ProvisionedThroughput, SSESpecification, Tags, etc.) and a delta
comparison implementation matching the code-generated patterns in ACK
controllers. This provides a foundation for testing runtime behavior changes
without requiring actual AWS API calls or a real controller codebase.
@ack-prow ack-prow bot requested review from michaelhtm and rushmash91 December 10, 2025 20:19
@ack-prow
Copy link

ack-prow bot commented Dec 10, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot added the approved label Dec 10, 2025
@a-hilaly
Copy link
Member Author

/retest

@ack-prow
Copy link

ack-prow bot commented Dec 16, 2025

@a-hilaly: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
verify-attribution 06cee45 link false /test verify-attribution
ec2-controller-test 06cee45 link true /test ec2-controller-test

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

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.

1 participant