diff options
Diffstat (limited to 'test/e2e/export_test.go')
-rw-r--r-- | test/e2e/export_test.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/e2e/export_test.go b/test/e2e/export_test.go index 6746ac769..3acb447f2 100644 --- a/test/e2e/export_test.go +++ b/test/e2e/export_test.go @@ -3,9 +3,10 @@ package integration import ( "os" + "path/filepath" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "path/filepath" ) var _ = Describe("Podman export", func() { @@ -43,4 +44,14 @@ var _ = Describe("Podman export", func() { err = os.Remove(outfile) Expect(err).To(BeNil()) }) + + It("podman export bad filename", func() { + _, ec, cid := podmanTest.RunLsContainer("") + Expect(ec).To(Equal(0)) + + outfile := filepath.Join(podmanTest.TempDir, "container:with:colon.tar") + result := podmanTest.Podman([]string{"export", "-o", outfile, cid}) + result.WaitWithDefaultTimeout() + Expect(result.ExitCode()).To(Not(Equal(0))) + }) }) |