Releases: IBM/mocktail
Releases · IBM/mocktail
0.3.2
0.3.1
0.3.0
This is a small release but can be considered a breaking as the MockServer.grpc() builder method has been deprecated in favor of MockServer::new_grpc() in #53, which should be used instead of MockServer::new().grpc() to create a gRPC mock server. MockServer::new() is unchanged and still creates a HTTP mock server, with MockServer::new_http() added as an alternative.
Starting with this release, the -alpha suffix is dropped from the version, but 0.* releases should still be considered alpha.
What's Changed
- [Enhancement] Add
MockServer::new_http()andMockServer::new_grpc()to specify the server type more explicitly by @declark1 in #53 - [Fix] Canonicalize headers when creating a HeaderMatcher by @bIgBV in #50
New Contributors
0.2.5-alpha
What's Changed
- [Feature] Add Mock
limitoption to limit the number of times a mock can be matched by @ferranjr in #33 - [Enhancement] Add Mock
idandmatch_countfields, addMockServerState, renamemock_with_prioritytomock_with_optionsby @declark1 in #35 - [Enhancement/Fix] Improve logic to find available port and add
MockServerConfigwith an initial set of options to make this configurable by @mdevino in #39 - [Misc] Drop
tonicdependency by @declark1 in #46- Also resolves bug in #43 due to breaking changes in
v0.13.0
- Also resolves bug in #43 due to breaking changes in
- [Misc] Make
MockServerSendby @mirosval in #44 - [Misc] Add missing
head()method toWhenand additional convenience methods toThenfor common errors by @declark1 in #27 - [Misc] Make
MockSetCloneby @mdevino in #41
New Contributors
0.2.4-alpha
0.2.3-alpha
What's Changed
- [Feature] Added 4 new matchers and associated
Whenmethods by @declark1 in #14- PathPrefixMatcher (path_prefix)
- QueryParamsMatcher (query_params)
- QueryParamMatcher (query_param)
- QueryParamExistsMatcher (query_param_exists)
- [Enhancement] Several
Requestupdates by @declark1 in #14- Added
urlfield (replacespathandqueryfields) - Added methods:
url,query_pairs, andmethod - Dropped
with_querymethod
- Added
- [Misc] Dropped
Cargo.lockfile and added it to.gitignore(woops) by @declark1 - [Misc] Updated dependency version requirements to be less restrictive by @declark1
- [Misc] Dropped unused dependencies, updated feature flags by @declark1 in #17
0.2.2-alpha
What's Changed
- [Fix] Dropped server graceful shutdown functionality for now by @declark1 in #13
- We can revisit adding this properly at a later time
- [Misc] Added
StatusCodeassociated constants for all error codes by @mdevino in #12 - [Misc] Added
MockServer::hostname()convenience method, returning the ip string by @declark1 in #11 - [Misc] Updated dependencies
New Contributors
0.2.1-alpha
Improve module structure, reorganize exports, add doc comments, updat…
0.2.0-alpha
Export StatusCode, add a couple of tests (#7) Signed-off-by: declark1 <44146800+declark1@users.noreply.github.com>
0.1.3-alpha
Expose server mocks and enable mutability (#5) Signed-off-by: declark1 <44146800+declark1@users.noreply.github.com>