DockerCLI/cli/command/image/testdata
Sebastiaan van Stijn dace8fdc75
formatter: reduce minimum width for columns in table-view
The tabwriter was configured to have a min-width for columns of 20 positions.
This seemed quite wide, and caused smaller columns to be printed with a large
gap between.

Before:

    docker container stats

    CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
    29184b3ae391        amazing_shirley     0.00%               800KiB / 1.944GiB     0.04%               1.44kB / 0B         0B / 0B             1
    403c101bad56        agitated_swartz     0.15%               34.31MiB / 1.944GiB   1.72%               10.2MB / 206kB      0B / 0B             51
    0dc4b7f6c6be        container2          0.00%               1.012MiB / 1.944GiB   0.05%               12.9kB / 0B         0B / 0B             5
    2d99abcc6f62        container99         0.00%               972KiB / 1.944GiB     0.05%               13kB / 0B           0B / 0B             5
    9f9aa90173ac        foo                 0.00%               820KiB / 1.944GiB     0.04%               13kB / 0B           0B / 0B             5

    docker container ls

    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
    29184b3ae391        docker-cli-dev      "ash"                    4 hours ago         Up 4 hours                              amazing_shirley
    403c101bad56        docker-dev:master   "hack/dind bash"         3 days ago          Up 3 days                               agitated_swartz
    0dc4b7f6c6be        nginx:alpine        "/docker-entrypoint.…"   4 days ago          Up 4 days           80/tcp              container2
    2d99abcc6f62        nginx:alpine        "/docker-entrypoint.…"   4 days ago          Up 4 days           80/tcp              container99
    9f9aa90173ac        nginx:alpine        "/docker-entrypoint.…"   4 days ago          Up 4 days           80/tcp              foo

    docker image ls

    REPOSITORY          TAG                    IMAGE ID            CREATED             SIZE
    docker-cli-dev      latest                 5f603caa04aa        4 hours ago         610MB
    docker-cli-native   latest                 9dd29f8d387b        4 hours ago         519MB
    docker-dev          master                 8132bf7a199e        3 days ago          2.02GB
    docker-dev          improve-build-errors   69e208994b3f        11 days ago         2.01GB
    docker-dev          refactor-idtools       69e208994b3f        11 days ago         2.01GB

After:

    docker container stats

    CONTAINER ID   NAME              CPU %     MEM USAGE / LIMIT     MEM %     NET I/O          BLOCK I/O   PIDS
    29184b3ae391   amazing_shirley   0.14%     5.703MiB / 1.944GiB   0.29%     1.44kB / 0B      0B / 0B     10
    403c101bad56   agitated_swartz   0.15%     56.97MiB / 1.944GiB   2.86%     10.2MB / 206kB   0B / 0B     51
    0dc4b7f6c6be   container2        0.00%     1016KiB / 1.944GiB    0.05%     12.9kB / 0B      0B / 0B     5
    2d99abcc6f62   container99       0.00%     956KiB / 1.944GiB     0.05%     13kB / 0B        0B / 0B     5
    9f9aa90173ac   foo               0.00%     980KiB / 1.944GiB     0.05%     13kB / 0B        0B / 0B     5

    docker container ls

    CONTAINER ID   IMAGE               COMMAND                  CREATED          STATUS          PORTS     NAMES
    29184b3ae391   docker-cli-dev      "ash"                    12 minutes ago   Up 12 minutes             amazing_shirley
    403c101bad56   docker-dev:master   "hack/dind bash"         3 days ago       Up 3 days                 agitated_swartz
    0dc4b7f6c6be   nginx:alpine        "/docker-entrypoint.…"   4 days ago       Up 4 days       80/tcp    container2
    2d99abcc6f62   nginx:alpine        "/docker-entrypoint.…"   4 days ago       Up 4 days       80/tcp    container99
    9f9aa90173ac   nginx:alpine        "/docker-entrypoint.…"   4 days ago       Up 4 days       80/tcp    foo

    docker image ls

    REPOSITORY          TAG                    IMAGE ID       CREATED         SIZE
    docker-cli-dev      latest                 5f603caa04aa   4 hours ago     610MB
    docker-cli-native   latest                 9dd29f8d387b   4 hours ago     519MB
    docker-dev          master                 8132bf7a199e   3 days ago      2.02GB
    docker-dev          improve-build-errors   69e208994b3f   11 days ago     2.01GB
    docker-dev          refactor-idtools       69e208994b3f   11 days ago     2.01GB

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-08-31 16:31:15 +02:00
..
Dockerfile.test add test case for DetectArchiveReader 2019-03-21 15:38:31 -07:00
gittar.test add test case for DetectArchiveReader 2019-03-21 15:38:31 -07:00
history-command-success.non-human.golden Update some assertions. 2018-03-05 17:15:24 -05:00
history-command-success.quiet-no-trunc.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
history-command-success.quiet.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
history-command-success.simple.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
import-command-success.input.txt Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
inspect-command-success.format.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
inspect-command-success.simple-many.golden update tests for new image struct 2017-07-04 20:34:24 -07:00
inspect-command-success.simple.golden update tests for new image struct 2017-07-04 20:34:24 -07:00
list-command-success.filters.golden formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
list-command-success.format.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
list-command-success.match-name.golden formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
list-command-success.quiet-format.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
list-command-success.simple.golden formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
load-command-success.input-file.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
load-command-success.input.txt Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
load-command-success.json.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
load-command-success.simple.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
prune-command-success.all.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
prune-command-success.force-deleted.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
prune-command-success.force-untagged.golden Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
prune-command-success.label-filter.golden Fix panic when pruning images with label-filter 2018-12-07 17:56:31 +01:00
pull-command-success.simple-no-tag.golden Add option to pull images quietly 2018-12-19 13:48:41 +01:00
pull-command-success.simple-quiet.golden fix(pull_test): for quiet option 2019-08-27 18:23:24 +09:00
pull-command-success.simple.golden Add option to pull images quietly 2018-12-19 13:48:41 +01:00
remove-command-success.Image Deleted and Untagged.golden Fix remove_test output duplication 2017-06-13 14:02:56 +02:00
remove-command-success.Image Deleted.golden Fix remove_test output duplication 2017-06-13 14:02:56 +02:00
remove-command-success.Image Untagged.golden Fix remove_test output duplication 2017-06-13 14:02:56 +02:00
remove-command-success.Image not found with force option.golden Use t.Run() for tests 2017-10-30 13:00:03 -04:00
tar.test add test case for DetectArchiveReader 2019-03-21 15:38:31 -07:00