summaryrefslogtreecommitdiff
path: root/test/apiv2/20-containers.at
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-04-07 15:10:15 -0500
committerBrent Baude <bbaude@redhat.com>2020-04-08 09:11:26 -0500
commit8ce23775a62b816c599e6d65c92985f62acc85c5 (patch)
tree1684970ce1400bb1f3d814a97cc4e941faaa87c1 /test/apiv2/20-containers.at
parent522dcd604edb6630b06ce1e2184ef11c0ea889f0 (diff)
downloadpodman-8ce23775a62b816c599e6d65c92985f62acc85c5.tar.gz
podman-8ce23775a62b816c599e6d65c92985f62acc85c5.tar.bz2
podman-8ce23775a62b816c599e6d65c92985f62acc85c5.zip
v2podman ps alter formats
in order to get the go templating to work for custom input, we now use structure methods instead of template map funcs. this requires some manipulation of fields so that the funcs can have the proper names. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r--test/apiv2/20-containers.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index 7fb39b221..04e2fa64c 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -21,8 +21,8 @@ t GET libpod/containers/json?all=true 200 \
length=1 \
.[0].Id~[0-9a-f]\\{12\\} \
.[0].Image=$IMAGE \
- .[0].Command[0]="true" \
- .[0].State~\\\(exited\\\|stopped\\\) \
+ .[0].Cmd[0]="true" \
+ .[0].ContainerState~\\\(exited\\\|stopped\\\) \
.[0].ExitCode=0 \
.[0].IsInfra=false