forked from containers/podman-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flesh out Images integration testing
* Add __version__ via api/version.py * Add PodmanConfig to parse containers.conf, will support reading connections * Added "Images" logger to Image and ImagesManager * Update Makefile with integration target * Update client to support unix:// and http+unix:// schemes * Add Images integration tests * Add Network unit and integration tests * Refactor PodmanLauncher to log service output to log file to capture debugging events * Add option to allow podman service to log debugging events during tests. Triggered by DEBUG environment variable * Refactor Image, Network, ImagesManager and NetworksManager as needed now integration tests running * Refactor unittests where as-built differs from swagger * Switch Podman service to vfs storage driver Signed-off-by: Jhon Honce <[email protected]>
- Loading branch information
Showing
29 changed files
with
847 additions
and
378 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
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
"""Podman client module.""" | ||
import logging | ||
|
||
from podman.api_connection import ApiConnection | ||
from podman.client import PodmanClient, from_env | ||
|
||
from podman.api.version import __version__ | ||
|
||
# isort: unique-list | ||
__all__ = ['ApiConnection', 'PodmanClient', 'from_env'] | ||
__all__ = ['ApiConnection', 'PodmanClient', '__version__', 'from_env'] |
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,23 +1,37 @@ | ||
"""Tools for connecting to a Podman service.""" | ||
|
||
from podman.api.client import APIClient | ||
from podman.api.parse_utils import decode_header, parse_repository, prepare_body, prepare_timestamp | ||
from podman.api.tar_utils import create_tar, prepare_dockerfile, prepare_dockerignore | ||
from podman.api.parse_utils import ( | ||
decode_header, | ||
parse_repository, | ||
prepare_body, | ||
prepare_cidr, | ||
prepare_timestamp, | ||
) | ||
from podman.api.tar_utils import create_tar, prepare_containerfile, prepare_dockerignore | ||
from podman.api.url_utils import prepare_filters | ||
|
||
DEFAULT_TIMEOUT = APIClient.default_timeout | ||
from . import version | ||
|
||
DEFAULT_TIMEOUT: float = 60.0 | ||
DEFAULT_CHUNK_SIZE = 2 * 1024 * 1024 | ||
|
||
API_VERSION: str = version.__version__ | ||
COMPATIBLE_VERSION: str = version.__compatible_version__ | ||
|
||
# isort: unique-list | ||
__all__ = [ | ||
'APIClient', | ||
'API_VERSION', | ||
'COMPATIBLE_VERSION', | ||
'DEFAULT_CHUNK_SIZE', | ||
'DEFAULT_TIMEOUT', | ||
'create_tar', | ||
'decode_header', | ||
'prepare_filters', | ||
'parse_repository', | ||
'prepare_body', | ||
'prepare_dockerfile', | ||
'prepare_cidr', | ||
'prepare_containerfile', | ||
'prepare_dockerignore', | ||
'prepare_filters', | ||
'prepare_timestamp', | ||
] |
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 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,3 @@ | ||
"""Version of PodmanPy.""" | ||
__version__ = "3.0.0" | ||
__compatible_version__ = "1.40" |
Oops, something went wrong.