summaryrefslogtreecommitdiff
path: root/test/e2e/save_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-11-18 20:47:33 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-11-19 13:55:10 -0500
commit21629b0501c62a991eef536765b7320bc2d45763 (patch)
tree38404b476151b3e601c9f9648ae47e6bda167a9f /test/e2e/save_test.go
parent2755d0255c94ac2ef797636935f83e3351d4d5af (diff)
downloadpodman-21629b0501c62a991eef536765b7320bc2d45763.tar.gz
podman-21629b0501c62a991eef536765b7320bc2d45763.tar.bz2
podman-21629b0501c62a991eef536765b7320bc2d45763.zip
podman-remote does not support signature-policy
Fixes: https://github.com/containers/podman/issues/12357 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
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 0b3a88da3..cdc5e7f1e 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() {