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 request body assertions to acceptance tests #2263

Merged
merged 46 commits into from
Jan 31, 2025

Conversation

shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented Jan 29, 2025

Changes

With this PR, any acceptance tests that define custom server stubs in test.toml will automatically record all HTTP requests made and assert on them.

Builds on top of #2226

Tests

Modifying existing acceptance test.

Base automatically changed from validate-response-body to main January 30, 2025 10:47
acceptance/acceptance_test.go Show resolved Hide resolved
acceptance/acceptance_test.go Outdated Show resolved Hide resolved
libs/testserver/server.go Outdated Show resolved Hide resolved
acceptance/acceptance_test.go Outdated Show resolved Hide resolved
acceptance/acceptance_test.go Show resolved Hide resolved
acceptance/acceptance_test.go Outdated Show resolved Hide resolved
@shreyas-goenka shreyas-goenka added this pull request to the merge queue Jan 31, 2025
Merged via the queue into main with commit 787dbe9 Jan 31, 2025
9 checks passed
@shreyas-goenka shreyas-goenka deleted the validate-request-body branch January 31, 2025 13:36
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.

2 participants