diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-21 15:32:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 15:32:56 -0700 |
commit | ecc5cc532a26b1fa94ec74a264df156501d4f9dd (patch) | |
tree | e63605e3c355e03c361eca02fc837abd713658ce /test/e2e/push_test.go | |
parent | 1ff984d509b85d9ededeb5c609bff01210512891 (diff) | |
parent | 9ced2488c953a11007e836403498f7c0892467f5 (diff) | |
download | podman-ecc5cc532a26b1fa94ec74a264df156501d4f9dd.tar.gz podman-ecc5cc532a26b1fa94ec74a264df156501d4f9dd.tar.bz2 podman-ecc5cc532a26b1fa94ec74a264df156501d4f9dd.zip |
Merge pull request #3863 from TomSweeneyRedHat/dev/tsweeney/digestfile2
Add --digestfile option to push
Diffstat (limited to 'test/e2e/push_test.go')
-rw-r--r-- | test/e2e/push_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/push_test.go b/test/e2e/push_test.go index cf6279f2f..4360eeece 100644 --- a/test/e2e/push_test.go +++ b/test/e2e/push_test.go @@ -76,6 +76,14 @@ var _ = Describe("Podman push", func() { push := podmanTest.PodmanNoCache([]string{"push", "--tls-verify=false", "--remove-signatures", ALPINE, "localhost:5000/my-alpine"}) push.WaitWithDefaultTimeout() Expect(push.ExitCode()).To(Equal(0)) + + // Test --digestfile option + push2 := podmanTest.PodmanNoCache([]string{"push", "--tls-verify=false", "--digestfile=/tmp/digestfile.txt", "--remove-signatures", ALPINE, "localhost:5000/my-alpine"}) + push2.WaitWithDefaultTimeout() + fi, err := os.Lstat("/tmp/digestfile.txt") + Expect(err).To(BeNil()) + Expect(fi.Name()).To(Equal("digestfile.txt")) + Expect(push2.ExitCode()).To(Equal(0)) }) It("podman push to local registry with authorization", func() { |