Kill 'clic' from dockertest/images & container

*  Neither of these subclasses is a true external-interface
   extension and will lead to combersome interface in the
   future.  Since it's used by only a single test, just
   move it there.

*  Found docker 0.9.1 changes formatting of 'ps -a' output
   for STATUS.  Updated containers module to account for this,
   added some debugging.

*  Found docker 0.9.1 changes content of STATUS column causing
   ps test to incorrectly fail.  Updated checks to account for
   both 'old way' and 'new way'

*  Fixed up unittests

*  Added TODO's to fix this missing functionality in more
   general way later.

*  Double-checked there are no references in docs

Signed-off-by: Chris Evich <cevich@redhat.com>
Docker: Update 0.5.4 (no API changes)

Signed-off-by: Chris Evich <cevich@redhat.com>
dockertest.dockercmd: Add AsyncDockerCmd property executed

This property is useful during cleanup, when we need to find out
whether this command was executed and we should clean after it.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add the `docker wait` test

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.dockercmd: Track execution status

*  Adds ``executed`` attribute
*  Adds ``execute_calls()`` method
*  Adds new DockerRuntimeError exception
*  Updated unittests

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...run_volumes: Add remote volume test

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

Docker: Minor update 0.5.4 (no API changes)
docker: Adds docker run tests.

run interactive & disconnect, attach to stdin/stdout/stderr.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
docker libs: Fix container kill command, force to AsyncJob close fds.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
dockertest.output: Add text table parser class

Generic classes for parsing char-offset column text-tables

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests.docker_cli: Add `docker top` test

This is a basic test which executes `docker top` without processes,
with 20 processes and on stopped container.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add start test

This test tries to start container couple of times and checks if it
behaves correctly.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests...psa fix STATUS content check

Docker CLI output for 'ps' command changed between versions.
This fix matches both old and new output.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...top and start catching general

Catching all exceptions can hide some problems making
maintenance and debugging difficult.  Limit both occasions
to catching/logging only expected exceptions, allowing
any unexpected to propigate through.

Signed-off-by: Chris Evich <cevich@redhat.com>
Docker: Release Update 0.5.5 (no API changes)

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

Docker 0.5.5
dockertest.output: Fix OutputGood No Details bug

https://github.com/autotest/autotest-docker/issues/64

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests..run_twice: Add run container twice test

Signed-off-by: Ouyang Guohua <gouyang@redhat.com>
Docker: Update 0.6.1 includes dockertest API changes

Signed-off-by: Chris Evich <cevich@redhat.com>
docker: Implement rm and some + fix codestyle + subtest

Subtest:
  Make cleanup function more verbose.

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