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

Refactor fetch response assertions and tests #29

Merged
merged 17 commits into from
Oct 3, 2024
Merged

Conversation

ryan-gang
Copy link
Contributor

This pull request refactors the fetch response assertions and tests to improve code readability and maintainability. It includes the following changes:

  • Added minimal FetchResponseAssertion for testing fetch responses

  • Added assertions for recordBatch + Records in FetchResponseAssertion

  • Improved error code logging in FetchResponseAssertion

  • Utilized FetchResponseAssertion in f4

  • Removed custom checks in f4, f2, and f3

  • Added AssertNoTopics method to FetchResponseAssertion

  • Called AssertNoTopics method in f2

  • Updated error code string issue

  • Added more error codes to mapping

  • Updated testFetchNoMessages function in f4

  • Added testFetchWithSingleMessage function in f5

  • Added testFetchWithMultiMessages function in f6

  • Set up tester prerequisites

These changes enhance the fetch response assertions and tests, making them more robust and easier to maintain.

@ryan-gang ryan-gang self-assigned this Oct 3, 2024
@ryan-gang ryan-gang merged commit 2824c0f into main Oct 3, 2024
2 checks passed
@ryan-gang ryan-gang deleted the fetch-assertion branch October 3, 2024 06:02
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.

1 participant