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

Policy: LIST limit/offset integration tests should include fuzzing #1706

Open
jakedoublev opened this issue Nov 4, 2024 · 0 comments
Open

Comments

@jakedoublev
Copy link
Contributor

Background

Go stdlib fuzz testing: https://packagemain.tech/p/fuzzing-http-services-golang

Policy LIST limit/offset is currently tested:

  • at the unit test level through proto validation
  • at the integration test level through db queries

However, for durability, we should employ Go’s stdlib fuzz testing to detect and avoid off by one errors panicking.

Acceptance Criteria

  • All LIST db queries throughout policy are tested at the integration level with the Go fuzzer
  • A fuzz timeout is added in CI when the integration tests are run on policy
  • A makefile script to run the integration tests with a fuzz timeout is added for ease of local DX
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

No branches or pull requests

1 participant