From 33c31112fb44da455b8841b73a92980a07f42720 Mon Sep 17 00:00:00 2001 From: 😎Mostafa Emami Date: Tue, 20 Sep 2022 07:27:00 +0200 Subject: cli: Add signature-policy flag to podman save MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- test/e2e/save_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') 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") -- cgit v1.2.3-54-g00ecf