aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-03 09:08:02 -0400
committerGitHub <noreply@github.com>2020-08-03 09:08:02 -0400
commit41358f5ea06062f1e1b80bd29802ea5d51cfe3b1 (patch)
tree17530f08e51529244e17d7a392fe5ab8f87e2c05 /test
parentbfd34542f463b7ea59b9560516b3b3d66674eefe (diff)
parent0785d6af157f815b93b2c7b105dbece2dbb7fefa (diff)
downloadpodman-41358f5ea06062f1e1b80bd29802ea5d51cfe3b1.tar.gz
podman-41358f5ea06062f1e1b80bd29802ea5d51cfe3b1.tar.bz2
podman-41358f5ea06062f1e1b80bd29802ea5d51cfe3b1.zip
Merge pull request #7158 from rhatdan/commit
Handle single character images
Diffstat (limited to 'test')
-rw-r--r--test/e2e/commit_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/commit_test.go b/test/e2e/commit_test.go
index 568ee080d..c122ce50f 100644
--- a/test/e2e/commit_test.go
+++ b/test/e2e/commit_test.go
@@ -49,6 +49,21 @@ var _ = Describe("Podman commit", func() {
Expect(StringInSlice("foobar.com/test1-image:latest", data[0].RepoTags)).To(BeTrue())
})
+ It("podman commit single letter container", func() {
+ _, ec, _ := podmanTest.RunLsContainer("test1")
+ Expect(ec).To(Equal(0))
+ Expect(podmanTest.NumberOfContainers()).To(Equal(1))
+
+ session := podmanTest.Podman([]string{"commit", "test1", "a"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ check := podmanTest.Podman([]string{"inspect", "localhost/a:latest"})
+ check.WaitWithDefaultTimeout()
+ data := check.InspectImageJSON()
+ Expect(StringInSlice("localhost/a:latest", data[0].RepoTags)).To(BeTrue())
+ })
+
It("podman container commit container", func() {
_, ec, _ := podmanTest.RunLsContainer("test1")
Expect(ec).To(Equal(0))