summaryrefslogtreecommitdiff
path: root/test/e2e/save_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-11-23 09:50:26 -0500
committerGitHub <noreply@github.com>2021-11-23 09:50:26 -0500
commitee612806655d0d0a0a3d2a782a000ea5c6b08f33 (patch)
tree6a5ef0988a7642d83c0e7d095f89f552cccc8551 /test/e2e/save_test.go
parent9e07cb17a92dd24df8053193e1e047f211a72a54 (diff)
parent21629b0501c62a991eef536765b7320bc2d45763 (diff)
downloadpodman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.gz
podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.tar.bz2
podman-ee612806655d0d0a0a3d2a782a000ea5c6b08f33.zip
Merge pull request #12361 from rhatdan/remote
podman-remote does not support signature-policy
Diffstat (limited to 'test/e2e/save_test.go')
-rw-r--r--test/e2e/save_test.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/e2e/save_test.go b/test/e2e/save_test.go
index 9f3f750b7..a8fb6c7b3 100644
--- a/test/e2e/save_test.go
+++ b/test/e2e/save_test.go
@@ -194,14 +194,16 @@ default-docker:
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- session = podmanTest.Podman([]string{"pull", "--tls-verify=false", "--signature-policy=sign/policy.json", "localhost:5000/alpine"})
- session.WaitWithDefaultTimeout()
- Expect(session).Should(Exit(0))
-
- outfile := filepath.Join(podmanTest.TempDir, "temp.tar")
- save := podmanTest.Podman([]string{"save", "remove-signatures=true", "-o", outfile, "localhost:5000/alpine"})
- save.WaitWithDefaultTimeout()
- Expect(save).To(ExitWithError())
+ if !IsRemote() {
+ session = podmanTest.Podman([]string{"pull", "--tls-verify=false", "--signature-policy=sign/policy.json", "localhost:5000/alpine"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ outfile := filepath.Join(podmanTest.TempDir, "temp.tar")
+ save := podmanTest.Podman([]string{"save", "remove-signatures=true", "-o", outfile, "localhost:5000/alpine"})
+ save.WaitWithDefaultTimeout()
+ Expect(save).To(ExitWithError())
+ }
})
It("podman save image with digest reference", func() {