-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Perform docker client cached lookup fallback, with optional conf…
…ig and environment settings.
- Loading branch information
Showing
9 changed files
with
696 additions
and
643 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Docker/Podman/Nerdctl | ||
===================== | ||
|
||
Docker-alike clients which are CLI-compatible with Docker, i.e. podman and nerdctl, | ||
can alternatively be configured to be used instead of docker. | ||
|
||
There are a number of ways to configure this setting, depending on the scenarios | ||
in which you expect the code to be used. | ||
|
||
Known-compatible string values for all settings options are: docker, podman, and nerdctl. | ||
|
||
* Environment variable `PMR_DOCKER_CLIENT=docker`: Use the environment variable option if | ||
the setting is environment-specific. | ||
|
||
* CLI options `pytest --pmr-docker-client docker`: Use this option for ad-hoc selection | ||
|
||
* pytest.ini setting `pmr_docker_client=docker`: Use this option to default all users to | ||
the selected value | ||
|
||
* Fallback: If none of the above options are set, each of the above options will be | ||
searched for, in order. The first option to be found will be used. | ||
|
||
Note, this fallback logic will be executed at most once per test run and cached. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pytest-mock-resources" | ||
version = "2.9.1" | ||
version = "2.9.2" | ||
description = "A pytest plugin for easily instantiating reproducible mock resources." | ||
authors = [ | ||
"Omar Khan <[email protected]>", | ||
|
@@ -54,7 +54,7 @@ python-on-whales = {version = ">=0.22.0", optional = true} | |
|
||
[tool.poetry.dev-dependencies] | ||
black = "22.3.0" | ||
botocore = ">=1.10.84" | ||
botocore = ">=1.31.63" | ||
coverage = "*" | ||
flake8 = "*" | ||
isort = ">=5.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.