Use golden files for tests that expect end-of-line whitespace
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
3
cli/command/formatter/testdata/container-context-write-special-headers.golden
vendored
Normal file
3
cli/command/formatter/testdata/container-context-write-special-headers.golden
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
CONTAINER ID IMAGE CREATED/STATUS/ PORTS .NAMES STATUS
|
||||
conta "ubuntu" 24 hours ago//.FOOBAR_BAZ
|
||||
conta "ubuntu" 24 hours ago//.FOOBAR_BAR
|
||||
5
cli/command/formatter/testdata/disk-usage-context-write-custom.golden
vendored
Normal file
5
cli/command/formatter/testdata/disk-usage-context-write-custom.golden
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
TYPE ACTIVE
|
||||
Images 0
|
||||
Containers 0
|
||||
Local Volumes 0
|
||||
Build Cache
|
||||
24
cli/command/formatter/testdata/disk-usage-raw-format.golden
vendored
Normal file
24
cli/command/formatter/testdata/disk-usage-raw-format.golden
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
type: Images
|
||||
total: 0
|
||||
active: 0
|
||||
size: 0B
|
||||
reclaimable: 0B
|
||||
|
||||
type: Containers
|
||||
total: 0
|
||||
active: 0
|
||||
size: 0B
|
||||
reclaimable: 0B
|
||||
|
||||
type: Local Volumes
|
||||
total: 0
|
||||
active: 0
|
||||
size: 0B
|
||||
reclaimable: 0B
|
||||
|
||||
type: Build Cache
|
||||
total:
|
||||
active:
|
||||
size: 0B
|
||||
reclaimable: 0B
|
||||
|
||||
2
cli/command/formatter/testdata/search-context-write-stars-table.golden
vendored
Normal file
2
cli/command/formatter/testdata/search-context-write-stars-table.golden
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
|
||||
result1 Official build 5000 [OK]
|
||||
3
cli/command/formatter/testdata/search-context-write-table.golden
vendored
Normal file
3
cli/command/formatter/testdata/search-context-write-table.golden
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
|
||||
result1 Official build 5000 [OK]
|
||||
result2 Not official 5 [OK]
|
||||
14
cli/command/formatter/testdata/service-context-write-raw.golden
vendored
Normal file
14
cli/command/formatter/testdata/service-context-write-raw.golden
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
id: id_baz
|
||||
name: baz
|
||||
mode: global
|
||||
replicas: 2/4
|
||||
image:
|
||||
ports: *:80->8080/tcp
|
||||
|
||||
id: id_bar
|
||||
name: bar
|
||||
mode: replicated
|
||||
replicas: 2/4
|
||||
image:
|
||||
ports: *:80->8080/tcp
|
||||
|
||||
3
cli/command/formatter/testdata/task-context-write-table-custom.golden
vendored
Normal file
3
cli/command/formatter/testdata/task-context-write-table-custom.golden
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
NAME NODE PORTS
|
||||
foobar_baz foo1
|
||||
foobar_bar foo2
|
||||
Reference in New Issue
Block a user