cli/command/formatter: TestContainerPsContext add test for State()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
54bf220a16
commit
d1c76198ba
@ -106,11 +106,17 @@ func TestContainerPsContext(t *testing.T) {
|
|||||||
call: ctx.Ports,
|
call: ctx.Ports,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
container: container.Summary{Status: "RUNNING"},
|
container: container.Summary{Status: "Up 123 seconds"},
|
||||||
trunc: true,
|
trunc: true,
|
||||||
expValue: "RUNNING",
|
expValue: "Up 123 seconds",
|
||||||
call: ctx.Status,
|
call: ctx.Status,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
container: container.Summary{State: container.StateRunning},
|
||||||
|
trunc: true,
|
||||||
|
expValue: container.StateRunning,
|
||||||
|
call: ctx.State,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
container: container.Summary{SizeRw: 10},
|
container: container.Summary{SizeRw: 10},
|
||||||
trunc: true,
|
trunc: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user