From 1fb9890a331449a0e250c8ceec4fb19852a4c14d Mon Sep 17 00:00:00 2001 From: Austin Vazquez Date: Wed, 25 Dec 2024 16:36:38 -0700 Subject: [PATCH] feat!: specify no-trunc for full snapshot ID Signed-off-by: Austin Vazquez --- tests/image_history.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/image_history.go b/tests/image_history.go index d653804..ba7a556 100644 --- a/tests/image_history.go +++ b/tests/image_history.go @@ -36,13 +36,15 @@ func ImageHistory(o *option.Option) { for _, quiet := range []string{"-q", "--quiet"} { quiet := quiet ginkgo.It(fmt.Sprintf("should only display snapshot ID with %s flag", quiet), func() { - ids := removeMissingID(command.StdoutAsLines(o, "image", "history", quiet, localImages[defaultImage])) + output := command.StdoutAsLines(o, "image", "history", quiet, "--no-trunc", localImages[defaultImage]) + ids := removeMissingID(output) gomega.Expect(ids).Should(gomega.HaveEach(gomega.MatchRegexp(sha256RegexFull))) }) } ginkgo.It("should only display snapshot ID with --format flag", func() { - ids := removeMissingID(command.StdoutAsLines(o, "image", "history", localImages[defaultImage], "--format", "{{.Snapshot}}")) + output := command.StdoutAsLines(o, "image", "history", "--no-trunc", localImages[defaultImage], "--format", "{{.Snapshot}}") + ids := removeMissingID(output) gomega.Expect(ids).Should(gomega.HaveEach(gomega.MatchRegexp(sha256RegexFull))) })