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

add test that verifies SRA order of operations #3025

Merged
merged 6 commits into from
Mar 4, 2025
Merged

Conversation

lucix-aws
Copy link
Contributor

Middleware snapshot tests, on their own, are not sufficient to prevent regressions, because a snapshot test only displays and tracks changes to a state, it does not catch when changes to that state are incorrect. To address this gap, we are implementing a new new test that verifies correct operation ordering.

[internal: addresses AI 2349272]

@lucix-aws lucix-aws requested a review from a team as a code owner March 3, 2025 19:12
@lucix-aws lucix-aws force-pushed the middleware-order-test branch from 065f2cb to 0ae5808 Compare March 3, 2025 20:31
Copy link
Contributor

@Madrigal Madrigal left a comment

Choose a reason for hiding this comment

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

Took a peek an protocol tests and a service team. Generated tests look good


private GoWriter.Writable renderTest(String operationName) {
return goTemplate("""
$1D $2D $3D $4D $5D $6D
Copy link
Contributor

Choose a reason for hiding this comment

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

man I love that we can just import things and then let Go fmt sort things later.

@lucix-aws lucix-aws merged commit 8f2dd23 into main Mar 4, 2025
13 checks passed
@lucix-aws lucix-aws deleted the middleware-order-test branch March 4, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants