libpod - python integration testing
Hi, I am interested in running python integration tests and/or anything particularly useful for the group. I checked out apiv2: test using docker-py integration tests #5386 <https://github.com/containers/libpod/issues/5386> and am trying to replicate the docker API tests - suitable for podman. Dont know if someone else all over this or not. ATM I am just tying to replicate ListContainersTest (docker-py <https://github.com/docker/docker-py>/api_container_test.py... "import docker"..."import podman") a simple container list test, but breaking here (leads almost to next question, any heads up on status of Python API appreciated). eg api_container_test.py:
import os import re import signal import tempfile import threading from datetime import datetime
import pytest import requests import six import docker Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'docker' import podman Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'podman'
Cheers! -- DAMON HATCHETT CONSULTANT Red Hat ACT <https://www.redhat.com/> Level 11, Canberra House 40 Marcus Clarke Street dhatchet@redhat.com M: +61422276484 <https://red.ht/sig> @RedHat <https://twitter.com/redhat> Red Hat <https://www.linkedin.com/company/red-hat> Red Hat <https://www.facebook.com/RedHatInc>
On 3/25/20 18:47, Damon Hatchett wrote:
Hi,
I am interested in running python integration tests and/or anything particularly useful for the group. I checked out apiv2: test using docker-py integration tests #5386 <https://github.com/containers/libpod/issues/5386> and am trying to replicate the docker API tests - suitable for podman. Dont know if someone else all over this or not. ATM I am just tying to replicate ListContainersTest (docker-py <https://github.com/docker/docker-py>/api_container_test.py... "import docker"..."import podman") a simple container list test, but breaking here (leads almost to next question, any heads up on status of Python API appreciated). eg
api_container_test.py:
import os import re import signal import tempfile import threading from datetime import datetime
import pytest import requests import six import docker Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'docker' import podman Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'podman'
Cheers!
--
DAMON HATCHETT
CONSULTANT
Red Hat ACT <https://www.redhat.com/>
Level 11, Canberra House
40 Marcus Clarke Street
dhatchet@redhat.com <mailto:dhatchet@redhat.com> M: +61422276484 <tel:+61422276484>
@RedHat <https://twitter.com/redhat> Red Hat <https://www.linkedin.com/company/red-hat> Red Hat <https://www.facebook.com/RedHatInc>
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
You need to download the podman-py package. https://github.com/containers/podman-py Or install python3-docker yum install python3-docker
participants (2)
-
Damon Hatchett -
Daniel Walsh