diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-06 05:40:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 05:40:03 -0400 |
commit | 1fcb6788a5d7471a7ca6215a40e36e21812a0f6e (patch) | |
tree | 1b5d174860400386676f8fdda8e09b557b140c7b /test/dockerpy/README.md | |
parent | 723e8234393fba230961bc1214a73ba5d01bbfe1 (diff) | |
parent | 359d67a68773747a269c407d9e62bee7f36d1d15 (diff) | |
download | podman-1fcb6788a5d7471a7ca6215a40e36e21812a0f6e.tar.gz podman-1fcb6788a5d7471a7ca6215a40e36e21812a0f6e.tar.bz2 podman-1fcb6788a5d7471a7ca6215a40e36e21812a0f6e.zip |
Merge pull request #6417 from sujil02/py-test
Adds docker py regression test.
Diffstat (limited to 'test/dockerpy/README.md')
-rw-r--r-- | test/dockerpy/README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/dockerpy/README.md b/test/dockerpy/README.md new file mode 100644 index 000000000..2894fc8ab --- /dev/null +++ b/test/dockerpy/README.md @@ -0,0 +1,35 @@ +# Dockerpy regression test + +Python test suite to validate Podman endpoints using dockerpy library + +Running tests +============= +To run the tests locally in your sandbox: + +#### Make sure that the Podman system service is running to do so + +``` +sudo podman --log-level=debug system service -t0 unix:/run/podman/podman.sock +``` +#### Run the entire test + +``` +sudo PYTHONPATH=/usr/bin/python python -m dockerpy.images +``` + +Passing the -v option to your test script will instruct unittest.main() to enable a higher level of verbosity, and produce detailed output: + +``` +sudo PYTHONPATH=/usr/bin/python python -m unittest -v dockerpy.images +``` +#### Run a specific test class + +``` +sudo PYTHONPATH=/usr/bin/python python -m unittest -v dockerpy.images.TestImages +``` + +#### Run a specific test within the test class + +``` +sudo PYTHONPATH=/usr/bin/python python -m unittest -v dockerpy.images.TestImages.test_list_images +``` |