aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author😎Mostafa Emami <mustafaemami@gmail.com>2022-09-20 07:27:00 +0200
committer😎Mostafa Emami <mustafaemami@gmail.com>2022-09-21 20:30:23 +0200
commit33c31112fb44da455b8841b73a92980a07f42720 (patch)
tree53e1d0b0ba0d7ae2dfef78882df215beed65383b /test
parent30231d0da7e6dcf3d6d1f45b10150baae35aaf28 (diff)
downloadpodman-33c31112fb44da455b8841b73a92980a07f42720.tar.gz
podman-33c31112fb44da455b8841b73a92980a07f42720.tar.bz2
podman-33c31112fb44da455b8841b73a92980a07f42720.zip
cli: Add signature-policy flag to podman save
Allow overwrite of the signature-policy file by passing signature-policy flag to podman save command Closes: https://github.com/containers/podman/issues/15869 Signed-off-by: 😎Mostafa Emami <mustafaemami@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/save_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/save_test.go b/test/e2e/save_test.go
index afb723a63..90ac8c5ff 100644
--- a/test/e2e/save_test.go
+++ b/test/e2e/save_test.go
@@ -46,6 +46,15 @@ var _ = Describe("Podman save", func() {
Expect(save).Should(Exit(0))
})
+ It("podman save signature-policy flag", func() {
+ SkipIfRemote("--signature-policy N/A for remote")
+ outfile := filepath.Join(podmanTest.TempDir, "alpine.tar")
+
+ save := podmanTest.Podman([]string{"save", "--signature-policy", "/etc/containers/policy.json", "-o", outfile, ALPINE})
+ save.WaitWithDefaultTimeout()
+ Expect(save).Should(Exit(0))
+ })
+
It("podman save oci flag", func() {
outfile := filepath.Join(podmanTest.TempDir, "alpine.tar")