mirror of
https://github.com/containers/podman.git
synced 2025-10-12 16:56:32 +08:00
Supports import&run--signature-policy
Enables podman create, pull, run, import to use --signature-policy option. Set it as hidden flag to be consistent with other commands. Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
@ -345,6 +345,17 @@ var _ = Describe("Podman create", func() {
|
||||
Expect(session).To(Not(Equal(0)))
|
||||
})
|
||||
|
||||
It("podman create --signature-policy", func() {
|
||||
SkipIfRemote() // SigPolicy not handled by remote
|
||||
session := podmanTest.Podman([]string{"create", "--pull=always", "--signature-policy", "/no/such/file", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Not(Equal(0)))
|
||||
|
||||
session = podmanTest.Podman([]string{"create", "--pull=always", "--signature-policy", "/etc/containers/policy.json", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman create with unset label", func() {
|
||||
// Alpine is assumed to have no labels here, which seems safe
|
||||
ctrName := "testctr"
|
||||
|
Reference in New Issue
Block a user