diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-13 11:42:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 11:42:47 +0100 |
commit | 2814995a9281b3b8e67d7c48df28de0de742b995 (patch) | |
tree | 619e916a4e18ac1f802596700c6a5c0418ebe184 /test | |
parent | a9969c23a343e675d9a628cd5d9456523aaea5b7 (diff) | |
parent | 3afd1b5a7c40e2a55ffd93b9a987385daa3047c0 (diff) | |
download | podman-2814995a9281b3b8e67d7c48df28de0de742b995.tar.gz podman-2814995a9281b3b8e67d7c48df28de0de742b995.tar.bz2 podman-2814995a9281b3b8e67d7c48df28de0de742b995.zip |
Merge pull request #5115 from QiWang19/images-format
images --format compatible with docker
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/images_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go index 9a67cc83a..8b6b679a5 100644 --- a/test/e2e/images_test.go +++ b/test/e2e/images_test.go @@ -116,7 +116,8 @@ var _ = Describe("Podman images", func() { }) It("podman images in GO template format", func() { - session := podmanTest.Podman([]string{"images", "--format={{.ID}}"}) + formatStr := "{{.ID}}\t{{.Created}}\t{{.CreatedAt}}\t{{.CreatedSince}}\t{{.CreatedTime}}" + session := podmanTest.Podman([]string{"images", fmt.Sprintf("--format=%s", formatStr)}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) }) @@ -280,7 +281,7 @@ RUN apk update && apk add man return session.OutputToStringArray() } - sortedArr := sortValueTest("created", 0, "CreatedTime") + sortedArr := sortValueTest("created", 0, "CreatedAt") Expect(sort.SliceIsSorted(sortedArr, func(i, j int) bool { return sortedArr[i] > sortedArr[j] })).To(BeTrue()) sortedArr = sortValueTest("id", 0, "ID") |