subtests.docker_cli: Add run_user test

this test changes --user and verifies it works correctly.

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

subtests.docker_cli: Add run_user test
subtests...cp: Convert to use sub-subtests

*  Added comment
*  Removed extended default timeout
*  Fixed string concatenation style
*  Use API method for container name generation

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests.docker_cli.diff: Avoid RHEL-specific files in test

Use /usr and /usr/bin for test instead of anaconda's ones.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.save_load: Style cleanups and prep for another subtest

No actual changes, only couple of style cleanups and refactor.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests...cp: Add every_last sub-subtest

* Feed container some python to walk it's entire filesystem
  except certain directories and symlinks as configured.
  Pickle results back to sub-subtest via stdout.
* Use the docker cp command on every file from unpickled
  list, verify it was copied to the host.

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

subtests.docker_cli.diff: Avoid RHEL-specific files in test
subtests.docker_cli.save_load: Add stressed_load subsubtest

This subsubtest spawns multiple workers and simultaneously loads
multiple existing and new images.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.dockercmd: More exception detail

Both NoFail and MustFail sub-classes provided very little
info. from exception in execute().  Added some overridable
static values with some simple default values.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...cp: Fix style/comments.

Instead of naked try...except, rely on NoFailDockerCmd to
provide any debugging details.  Clarify comment regarding
command-line fed code-generation via inspect module.

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

This test executes couple of containers, creates file in each of them
and compares the size of the container with the size of the created file.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest: Mask unittest magic found by new pylint

Latest pylint run by Travis complains about
  Bad first argument 'FakeSubtestException' given to super()
As this is intended in unittest I masked it localy...

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

 subtests.docker_cli.save_load: Add stressed_load subsubtest
subtests...cp: Limit max files to be copied

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'ps_size' of https://github.com/ldoktor/autotest-docker
subtests.docker_cli: Update ps_size docs

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

Small doc. fixup for #286
Merge pull request #281 from cevich/cp_anywhere

Add Docker cp anywhere
dockertest.containers: Support ICC links in names

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

dockertest.containers: Support ICC links in names