summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-27 12:48:10 +0100
committerGitHub <noreply@github.com>2021-01-27 12:48:10 +0100
commit5c6175df390031bcf34d28935a79ee467cca7e7d (patch)
treec4e07d5a73aa1533a70b2440d87e22eb55cff3de /test/e2e
parent2102e26506f392499b78297d25e24d591dee3bc8 (diff)
parentf79d68eeae7dbc2c1a6dc2d52a24eeed23ed36ab (diff)
downloadpodman-5c6175df390031bcf34d28935a79ee467cca7e7d.tar.gz
podman-5c6175df390031bcf34d28935a79ee467cca7e7d.tar.bz2
podman-5c6175df390031bcf34d28935a79ee467cca7e7d.zip
Merge pull request #9122 from Luap99/fix-9120
Fix podman history --no-trunc for the CREATED BY field
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/history_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/e2e/history_test.go b/test/e2e/history_test.go
index fea3f4d43..1c57c60de 100644
--- a/test/e2e/history_test.go
+++ b/test/e2e/history_test.go
@@ -65,6 +65,23 @@ var _ = Describe("Podman history", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
Expect(len(session.OutputToStringArray())).To(BeNumerically(">", 0))
+
+ session = podmanTest.Podman([]string{"history", "--no-trunc", "--format", "{{.ID}}", ALPINE})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ lines := session.OutputToStringArray()
+ Expect(len(lines)).To(BeNumerically(">", 0))
+ // the image id must be 64 chars long
+ Expect(len(lines[0])).To(BeNumerically("==", 64))
+
+ session = podmanTest.Podman([]string{"history", "--no-trunc", "--format", "{{.CreatedBy}}", ALPINE})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ lines = session.OutputToStringArray()
+ Expect(len(lines)).To(BeNumerically(">", 0))
+ Expect(session.OutputToString()).ToNot(ContainSubstring("..."))
+ // the second line in the alpine history contains a command longer than 45 chars
+ Expect(len(lines[1])).To(BeNumerically(">", 45))
})
It("podman history with json flag", func() {