DockerCLI/cli/command/volume
Sebastiaan van Stijn db827d583b
cli/command/volume: suppress err output in tests
These tests were deliberately producing errors as part of the test, but
printing those errors could be confusing / make it more difficult to find
actual test-failures.

Before this patch:

    === RUN   TestVolumeCreateErrors
    Error: conflicting options: either specify --name or provide positional arg, not both
    Error: "create" requires at most 1 argument.
    See 'create --help'.

    Usage:  create [OPTIONS] [VOLUME] [flags]

    Create a volume
    Error: error creating volume
    --- PASS: TestVolumeCreateErrors (0.00s)
    PASS

With this patch applied:

    === RUN   TestVolumeCreateErrors
    --- PASS: TestVolumeCreateErrors (0.00s)
    PASS

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-03-21 13:21:20 +01:00
..
testdata Add cluster volume support 2022-05-13 20:06:11 +02:00
client_test.go vendor: github.com/docker/docker 2ed904cad7055847796433cc56ef1d1de0da868c 2022-04-30 12:01:37 +02:00
cmd.go Add cluster volume support 2022-05-13 20:06:11 +02:00
create.go cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
create_test.go cli/command/volume: suppress err output in tests 2023-03-21 13:21:20 +01:00
inspect.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
inspect_test.go cli/command/volume: suppress err output in tests 2023-03-21 13:21:20 +01:00
list.go cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
list_test.go cli/command/volume: suppress err output in tests 2023-03-21 13:21:20 +01:00
prune.go cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
prune_test.go cli/command/volume: suppress err output in tests 2023-03-21 13:21:20 +01:00
remove.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
remove_test.go cli/command/volume: suppress err output in tests 2023-03-21 13:21:20 +01:00
update.go cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00