Skip to content

Commit

Permalink
First support for testing containers.
Browse files Browse the repository at this point in the history
The new engines are created.
container.py is used for manipulation with containers w/o S2I support.
s2i_container.py is used for manipulation with containers with s2i support.
Podman Wrapper is used for working with podman / docker binaries

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Nov 26, 2024
1 parent 32df07c commit d745295
Show file tree
Hide file tree
Showing 9 changed files with 1,121 additions and 60 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import os

import pytest

from container_ci_suite.api import ContainerCISuite
from container_ci_suite.container import ContainerAPI

image_name = os.environ.get("IMAGE_NAME", "nginx-container")
test_dir = os.path.abspath(os.path.dirname(__file__))


class TestDummyImage(object):
def test_s2i_usage(self):
ccs = ContainerCISuite(image_name=image_name)
ccs = ContainerAPI(image_name=image_name)
ccs.s2i_usage()

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
logger = logging.getLogger(__name__)


class ContainerCISuite(object):
class ContainerAPI(object):
def __init__(self, image_name: str):
self.image_name: str = image_name
self.container_args: str = ""
Expand Down
Loading

0 comments on commit d745295

Please sign in to comment.