2.6 KiB
2.6 KiB
Changelog
Next
0.5.8
- Features:
- Functions from
&RequesttoResponseTemplatecan now be passed toMockBuilder::respond_with. You do not have to write a struct with aRespondimplementation for simple manipulation of request data! (by @RoGryza)
- Functions from
0.5.7
- Fixes:
MockGuardis now marked asmust_use, ensuring that a compiler warning is raised if the guard for a scoped mock is not bound to a variable.
0.5.6
- Features:
- Added support for scoped
Mocks! UsingMockServer::register_as_scopedorMock::mount_as_scopedyou can now registerMocks that go "out of scope" when the returned RAII guard (MockGuard) is dropped. ScopedMocks are recommended for usage in test helper functions to ensure proper isolation - check the documentation for more details! (by @LukeMathWalker)
- Added support for scoped
0.5.5
- Miscellaneous:
- Added the
httpmodule to re-export the types fromhttp-typesthat are part ofwiremock's public API (by @LukeMathWalker).
- Added the
0.5.4
- Fixes:
- Handle URI authority properly in the mock server (by @Tuetuopay)
0.5.3
- Miscellaneous:
- Remove
textwrapfrom the dependency tree (by @apiraino)
- Remove
0.5.2
0.5.1
- Features:
- Capture the port in
hyper'sRequestintowiremock::Request::url(by @beltram)
- Capture the port in
0.5.0
- Breaking changes:
- Removed
MockServer::start_on.
UseMockServer::builderandMockServerBuilder::listenerto configure yourMockServerto start on a pre-determined port (by @LukeMathWalker). MockServer::verifyis now asynchronous (by @LukeMathWalker).
- Removed
- Features:
- Added request recording to
MockServer, enabled by default.
The recorded requests are used to display more meaningful error messages when assertions are not satisfied and can be retrieved usingMockServer::received_requests([by @LukeMathWalker]). - Added
MockServerBuilderto customise the configuration of aMockServer.
It can be used to bind aMockServerto an existingTcpListeneras well as disabling request recording (by @LukeMathWalker). - Added
matchers::body_json_schemato verify the structure of the body attached to an incoming request (by @Michael-J-Ward).
- Added request recording to