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

chore(grpc-mock): restructure and add mock grpc tests #1579

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ethanoroshiba
Copy link
Contributor

Summary

Divided GRPC mock tests by component and added a few more.

Background

Some parts of the GRPC mock still weren't tested, and the crate also needed a test for the new delay capabilities.

Changes

  • Divided tests up by mock, response, and matcher.
  • Added field to HealthCheckRequest so that we could more accurately test matcher::partialpbjson.
  • Added tests for the and mock combinator, matchers not matching incorrect requests, up_to_n_times, DynamicResponse, and delay.

Testing

All tests passing.

Related Issues

closes #902
closes #1559

@ethanoroshiba ethanoroshiba marked this pull request as ready for review September 27, 2024 15:11
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.

test grpc delayed responses Test grpc mock combinators
1 participant