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: 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>
Add/Fix configurable case name generation

*  As of docker-io 0.91 upper-case image names are rejected
   for some reason.  Several tests each implement their own
   image-name generation which results in mixed-case names.

*  Add a get_unique_name() method to images module, with attribute
   to force lower-case names (defaults to True).

*  Update all existing tests that frequently cause failures on
   image naming.

*  Left one of the "tag" sub-sbutests failing so this problem is
   overlooked.  If lower-only is a legit requirement, then
   the adjust ``gen_lower_only`` config option.

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

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

squash! 246963aed930268138342084a6231a3dfbfd2a8d

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'start3' of https://github.com/jzupka/autotest-docker into integration

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

Conflicts:
	config_defaults/subtests/docker_cli/start.ini
	subtests/docker_cli/start/start.py
subtests...insert: fix cleanup() bug

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'move_check' of https://github.com/cevich/autotest-docker into integration

Conflicts:
	dockertest/containers.py
	subtests/docker_cli/psa/psa.py
subtests...psa: Fix use of non-working signal

SIGUSR isn't handled uniformly by docker and this test isn't
about signals.  Switch to the 'ole reliable SIGUSR1 and
leave the signal testing to more appropriate tests.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests.docker_cli.kill: Fix indentation which causes false-positive

The else was missaligned to another branch causing fals-positive results

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