DockerCLI/cli/command
Sebastiaan van Stijn 867baaff66 swarm: TestSwarmUpdate: remove non-existing "--quiet" flag
The `docker swarm update` copmmand does not have a `--quiet` flag, but this
test was trying to set it.

    docker swarm update --help

    Usage:  docker swarm update [OPTIONS]

    Update the swarm

    Options:
          --autolock                        Change manager autolocking setting (true|false)
          --cert-expiry duration            Validity period for node certificates (ns|us|ms|s|m|h) (default 2160h0m0s)
          --dispatcher-heartbeat duration   Dispatcher heartbeat period (ns|us|ms|s|m|h) (default 5s)
          --external-ca external-ca         Specifications of one or more certificate signing endpoints
          --max-snapshots uint              Number of additional Raft snapshots to retain
          --snapshot-interval uint          Number of log entries between Raft snapshots (default 10000)
          --task-history-limit int          Task history retention limit (default 5)

The test didn't catch this issue, because errors when setting the flag were
not handled, so also adding error-handling;

    === Failed
    === FAIL: cli/command/swarm TestSwarmUpdate (0.00s)
        update_test.go:177: assertion failed: error is not nil: no such flag -quiet

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit b08e34b9f9)
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-09-03 19:35:23 -04:00
..
builder cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
checkpoint cli/command/checkpoint: fakeClient: remove name for unused arg (revive) 2023-07-15 15:22:12 +02:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion cli/command/completion: NoComplete(): remove unused argument (revive) 2023-07-15 15:20:41 +02:00
config cli/command/config: fakeClient: include context in fake client (revive) 2023-07-15 15:21:48 +02:00
container cli/command/container: fakeClient: remove name for unused arg (revive) 2023-07-15 15:22:21 +02:00
context cli/command/context: remove redundant if ...; err != nil check (revive) 2023-07-15 15:20:17 +02:00
formatter cli/command/formatter: export JSONFormat const 2023-04-26 12:12:24 +02:00
idresolver cli/command/idresolver: fakeClient: remove name for unused arg (revive) 2023-07-15 15:22:31 +02:00
image cli/command/image: fakeClient: remove name for unused arg (revive) 2023-07-15 15:23:00 +02:00
inspect linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
manifest manifest: save raw manifest content on download 2023-01-27 13:56:17 +00:00
network cli/command/network: fakeClient: remove name for unused arg (revive) 2023-07-15 15:23:09 +02:00
node cli/command/node: fakeClient: remove name for unused arg (revive) 2023-07-15 15:23:22 +02:00
plugin cli/command/plugin: fakeClient: remove name for unused arg (revive) 2023-07-15 15:23:34 +02:00
registry cli/command/registry: fakeClient: remove name for unused arg (revive) 2023-07-15 15:23:45 +02:00
secret cli/command/secret: fakeClient: include context in fake client (revive) 2023-07-15 15:21:58 +02:00
service update golangci-lint to v1.54.2 2024-09-03 19:35:23 -04:00
stack cli/command/stack: fakeClient: remove name for unused arg (revive) 2023-07-15 15:24:07 +02:00
swarm swarm: TestSwarmUpdate: remove non-existing "--quiet" flag 2024-09-03 19:35:23 -04:00
system fix docker version --format=json not outputting json format 2023-04-26 12:12:25 +02:00
task cli/command/task: fakeClient: remove name for unused arg (revive) 2023-07-15 15:24:26 +02:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust cli/command/trust: fakeClient: remove name for unused arg (revive) 2023-07-15 15:24:36 +02:00
volume cli/command/volume: remove name for unused arg (revive) 2023-07-15 15:24:46 +02:00
cli.go Handle empty DOCKER_BUILDKIT like unset 2023-04-19 15:53:40 +02:00
cli_options.go cli/command: add WithAPIClient 2022-12-05 21:40:39 +01:00
cli_options_test.go linting: os.Setenv() can be replaced by `t.Setenv()` (tenv) 2022-09-03 21:25:37 +02:00
cli_test.go cli/command: initialize client and load content lazily 2022-11-28 16:52:02 +01:00
context.go cli/command: move default context description to context itself 2022-11-22 12:57:54 +01:00
context_test.go cli/command: use more descriptive const in test 2022-11-22 12:57:57 +01:00
defaultcontextstore.go cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
defaultcontextstore_test.go cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
registry.go cli/command: fix documentation for ResolveAuthConfig 2023-04-12 12:39:06 +02:00
registry_test.go cli/command: fix imports formatting 2023-03-21 16:58:47 +01:00
streams.go cli/command: fix deprecation comments for Stream types 2023-04-01 20:38:27 +02:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go cli/command: use strings.Cut 2022-12-29 15:19:31 +01:00
utils_test.go format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00