dockertest.images: Fix repo_split_p regexp

Docker looks for either '.' or ':' in order to distinguish between
repo_addr or user name, thus the name could contain other characters
and not just \w.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
LICENSE: Fix the project name in LICENSE

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

LICENSE: Fix the project name in LICENSE
Merge pull request #2 from ldoktor/framework

dockertest.images: Fix repo_split_p regexp
Docker: Revision 0.3.2 Updates (no interface changes)

*  Cleaned up some minor pylint problems

*  Added an 's' on the end of images_unittest.py

*  Added simple unittests script to execute them
   all in parallel.

*  Updated documentation to include subtest.SubSubtestCaller
   class.  It was mistakenly not added previously.

*  Added minimal networking module with ContainerPort class.
   Follows very closely to the same pattern as images module.

*  Added minimal containers module also mirroring closely
   with the images pattern.  However there are quite a few
   more container attributes, only some are needed for
   creation, the rest are simply stuck onto the class.

*  Added missing __init__ method to DockerImagesCLI and
   DockerContainersCLI to fill in default params.

*  Added standard autotest test exceptions to xceptions module.
   This makes it easier for tests (they don't need to import
   big-long autotest module).  It also allows us to see the
   different between a test-raised exception and harness-raised.

*  Extended DockerImagesCLI and DockerContainersCLI
   interface by turning docker_cmd() into a public method.
   This allows the possibility for tests to perform checks or
   modifications when the command being used is the subject
   of a test.  Changed the timeout parameter to be non-defaulting.
   Callers may override this behavior if needed.

*  Extended CLI interfaces for images and containers with
   new name 'clic'.  This is for when the image or ps command
   is the test subject and therefor output checkers need to
   run against it's output.

*  Added annother output module 'checker' to watch for an
   'error: ' string in output.  Updated all negative subtests
   to properly invert the checker results.

*  Updated build subtest to log a message when postprocess
   failed to remove the built image.

*  Added output_check method and override to pull tests.
   Updated negative subsubtest 'wrong_registry_addr' to properly
   fail on SUCCESSFUL checks (error-check now catches here)

*  Updated run subtest to use utils.signal_pid() which has some
   extra testing-related checks involved.

*  Added additional verbosity to check in version subtest.

Signed-off-by: Chris Evich <cevich@redhat.com>
Docker: Add test for 'ps -a' subcommand

Signed-off-by: Chris Evich <cevich@redhat.com>
docker: adds docker commit repo_tag test.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
docker: fix images for parsing <none>:<none> name of image.

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

Docker: Revision 0.3.2 Updates (no interface changes)
-and-
Commit test and fixs image re pattern. #5
Docker: Fix inter-subtest python module interaction

Thanks to Lukáš Doktor <ldoktor@redhat.com> for helping track
this bug down.

Signed-off-by: Chris Evich <cevich@redhat.com>
Docker: Release 0.3.3 update (no interface changes)

*  Clarified subtest method execution order in example
   subtest.

*  Added example subtest that makes use of the subsubtest
   construct.  Provided two example subsubtests.

*  Added methods to containers module to allow retrieval
   of container JSON metadata in a standard way, but specific
   to interface-implementations.  For the CLI, it simply
   calls 'docker inspect'.

*  Fixed DockerContainersCLI bug where it was not
   passing the default instance timeout value
   through to docker_cmd().

*  Fixed DockerImagesCLI where it was not overriding
   the base class timeout option properly from
   docker_cmd.

*  Made SubSubtest class properly call it's own
   console logging functions instead of those from
   it's parent.

*  Made SubSubtest class accept subsubtests without
   any configuration.  Since they inherit from the parent
   subtest, sometimes additional configuration is not
   needed.

*  Added ability to SubSubtestCaller for loading
   sub-subtest by name from the same module holding
   the subclass.  This is demonstrated in the new
   ``subexample`` subtest.

*  Updated project documentation.

Signed-off-by: Chris Evich <cevich@redhat.com>
dockertest.subtest: Change C++-like names to python ones

Rename following methods to pythonic convention:
subtest.parentSubtest => subtest.parent_subtest
subtest.subStuff => subtest.sub_stuff

and increase the API revision number.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests..build: Download busybox from internet

Download busybox (GPLv2) from the public repository in setup() phase instead
of package dependency.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Docker: Add dockertest.docker_daemon module

*  Since python-docker-py is just an example reference implementation
   we should not rely on it for testing.  However, several tests
   need to obtain information directly from the daemon.  The
   docker_daemon module simplifies this while allowing for future
   expansion.

*  Update version test to use dockertest.docker_daemon instead of
   custom HTTP request when python-docker-py is not available.

*  Updated documentation.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
Docker: fix subtest C++-like names to python ones

Rename following methods to pythonic convention:
subtest.parentSubtest => subtest.parent_subtest
subtest.subStuff => subtest.sub_stuff

and increase the API minor number.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.subtest: Add missing log variable

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests..run_simple: Refactor this test as SubSubtests

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests..run_simple: Minor cleanups

*  Removed redundant ``config_section`` attributes
   from subsubtests (they're automatically discovered)

*  Folded ultra-simple true/false modules into the main
   module (left ``run_signal`` separate).

*  Accidentally reordered Lukáš commits, needed to
   fixup subStuff -> sub_stuff and parentSubtest -> parent_subtest
   due to 0.4.1 interface change (expected).

*  Fixed subtests..psa to remove stop file as per
   Lukáš Doktor <ldoktor@redhat.com>

*  Increased run_simple:run_signal post-signal timeout in case
   downloading the image is needed.

*  Updated documentation

Signed-off-by: Chris Evich <cevich@redhat.com>
dockertest.images: Fixup pylint finding

Timeout parameter was defaulted in ancestor class but
I forgot to update in child class also.

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

Docker 0.4.1