summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/e2e/images_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index e05281ac9..8b9b889aa 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -3,6 +3,7 @@ package integration
import (
"os"
+ "fmt"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
@@ -129,4 +130,17 @@ var _ = Describe("Podman images", func() {
Expect(result.ExitCode()).To(Equal(0))
Expect(len(result.OutputToStringArray())).To(Equal(1))
})
+
+ It("podman check for image with sha256: prefix", func() {
+ session := podmanTest.Podman([]string{"inspect", "--format=json", ALPINE})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.IsJSONOutputValid()).To(BeTrue())
+ imageData := session.InspectImageJSON()
+
+ result := podmanTest.Podman([]string{"images", fmt.Sprintf("sha256:%s", imageData[0].ID)})
+ result.WaitWithDefaultTimeout()
+ Expect(result.ExitCode()).To(Equal(0))
+ })
+
})