subtests.docker_cli.import_export: Add with_env variant

Tests the ``docker import --env`` feature by setting multiple variables,
exporting container, importing it and running it while overriding some
of the variables using various ways to overwrite them. (import cmdline,
import file, run cmdline, ...)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #390 from ldoktor/import_export

subtests.docker_cli.import_export: Add with_env variant
subtests.docker_cli: Add new test run_volumes_selinux

This test uses `docker run --volume ::Z/z` and checks it sets the
selinux context properly.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #388 from ldoktor/selinux_volumes

subtests.docker_cli: Add new test run_volumes_selinux
subtests.docker_cli.run_volumes_selinux: Remove libselinux dependency

Use `ls --scontext` instead of libselinux-python which might not be
present on all systems.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #391 from ldoktor/selinux_volumes

subtests.docker_cli.run_volumes_selinux: Remove libselinux dependency
dockertest: Speed up subsubtest config creating by deep copy-able version.

Creation of subsubtests instance took quite a long time because
deep copy of configuration took a long time.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
subtests: Fix some tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
subtests: fixes tests errors.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #395 from jzupka/fix_tests_errors

subtests: Fix tests errors
Merge pull request #394 from jzupka/config_speedup

dockertest: Speed up subsubtest config creating by deep copy-able version.
subtests: Adds docker exec tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Docs: Fix class-attribute use omission

It was an intended extension point for SubtestDoc
instances to alter their configuration representation
if needed.  However this hook was never tied in to
the actual usage by mistake.

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge pull request #399 from cevich/fix_configdocclass

Docs: Fix class-attribute use omission
Merge pull request #392 from jzupka/exec_test

subtests: Adds docker exec tests.
fix dockertest.images regex not include permitted chars

Both hostnames, images names, and tag names may all contain
additional characters which are not present in the '\w' class.

Signed-off-by: Chris Evich <cevich@redhat.com>
docker_cli/create: Test docker 'create' command

Signed-off-by: Chris Evich <cevich@redhat.com>
docs: Fix attribute error in older python 2.7

Signed-off-by: Chris Evich <cevich@redhat.com>