Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Update mockito requirement from 0.31 to 0.32 #80

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 13, 2023

Updates the requirements on mockito to permit the latest version.

Release notes

Sourced from mockito's releases.

0.32.0

This is a major re-write, introducing a bunch of long awaited features:

  • [Breaking] The minimum supported Rust version was bumped to 1.65.0

  • Tests can now run in parallel as long as you use the new mockito::Server API:

    let mut server = mockito::Server::new();
    let mock = server.mock("GET", "/").with_body("test").create();
    // Use one of these to configure your client
    let host = server.host_with_port();
    let url = server.url();

  • You can run multiple servers/hosts at the same time:

    let mut twitter = mockito::Server::new();
    let twitter_mock = server.mock("GET", "/api").with_body("tweet").create();
    let twitter_host = twitter.host_with_port();
    let mut github = mockito::Server::new();
    let github_mock = server.mock("GET", "/api").with_body("repo").create();
    let github_host = github.host_with_port();

  • Support for HTTP2

  • An async interface for all actions (though the sync interface is also available):

    let mut server = Server::new_async().await;
    let mock = s
        .mock("GET", "/hello")
        .with_body("world")
        .create_async()
        .await;
  • The backend has been rewritten to use Hyper

This version will be backwards compatible with the previous version, but deprecation warnings have been introduced and you are encouraged to migrate, since the old API still requires running tests sequentially. Migrating to the new API is quite straighforward:

Migrating to the new API

Legacy API:

let m = mockito::mock("GET", "/").with_body("hello").create();
</tr></table>

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [mockito](https://github.com/lipanski/mockito) to permit the latest version.
- [Release notes](https://github.com/lipanski/mockito/releases)
- [Commits](lipanski/mockito@0.31.0...0.32.0)

---
updated-dependencies:
- dependency-name: mockito
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added C-dependency Update a dependency L-rust Tag the Rust ecosystem R-ignore Do not add this pull request to the release notes labels Feb 13, 2023
@dependabot dependabot bot requested a review from jdno February 13, 2023 19:05
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 13, 2023

Superseded by #85.

@dependabot dependabot bot closed this Mar 13, 2023
@dependabot dependabot bot deleted the dependabot/cargo/mockito-0.32 branch March 13, 2023 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-dependency Update a dependency L-rust Tag the Rust ecosystem R-ignore Do not add this pull request to the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant