DockerCLI/cli/command/stack/testdata
Sebastiaan van Stijn ceb18a841a
Fix presentation of published "random" host ports
Ports that were picked from the ephemeral port range
were presented as `*:0->80/tcp`.

This patch changes the presentation to use the
actually assigned port, instead of the port specified
in `Endpoint.Spec` (which is always empty/zero (`0`))

Before this change;

    ID                  NAME                MODE                REPLICAS            IMAGE               PORTS
    5d44i665qj66        with-random-port    replicated          1/1                 nginx:alpine        *:0->80/tcp

After this change;

    ID                  NAME                MODE                REPLICAS            IMAGE               PORTS
    5d44i665qj66        with-random-port    replicated          1/1                 nginx:alpine        *:30000->80/tcp

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-08-01 19:21:17 +02:00
..
bundlefile_with_two_services.dab add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-list-sort-natural.golden Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
stack-list-sort.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-list-with-format.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-list-without-format.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-ps-with-config-format.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-ps-with-format.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-ps-with-no-resolve-option.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-ps-with-no-trunc-option.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-ps-with-quiet-option.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-ps-without-format.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-services-with-config-format.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-services-with-format.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-services-with-quiet-option.golden add unit tests to stack package 2017-06-20 14:31:00 -04:00
stack-services-without-format.golden Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00