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

Update mockito requirement from 0.31.0 to 0.32.0 - #89

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/mockito-0.32.0
Closed

Update mockito requirement from 0.31.0 to 0.32.0#89
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/mockito-0.32.0

Conversation

@dependabot

@dependabotdependabotBot commented on behalf of githubFeb 13, 2023

Copy link
Copy Markdown
Contributor

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:

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

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

    letmut twitter = mockito::Server::new();let twitter_mock = server.mock("GET","/api").with_body("tweet").create();let twitter_host = twitter.host_with_port();letmut 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):

    letmut 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] <support@github.com>
@dependabotdependabotBot 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
dependabotBot requested a review from jdnoFebruary 13, 2023 14:09
@dependabot@github

dependabotBot commented on behalf of githubFeb 20, 2023

Copy link
Copy Markdown
ContributorAuthor

Superseded by #91.

@dependabotdependabotBot closed this Feb 20, 2023
@dependabot
dependabotBot deleted the dependabot/cargo/mockito-0.32.0 branch February 20, 2023 14:06
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

C-dependencyUpdate a dependencyL-rustTag the Rust ecosystemR-ignoreDo not add this pull request to the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jdno