diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-11-18 20:47:33 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-11-19 13:55:10 -0500 |
commit | 21629b0501c62a991eef536765b7320bc2d45763 (patch) | |
tree | 38404b476151b3e601c9f9648ae47e6bda167a9f /test/e2e/load_test.go | |
parent | 2755d0255c94ac2ef797636935f83e3351d4d5af (diff) | |
download | podman-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/load_test.go')
-rw-r--r-- | test/e2e/load_test.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/e2e/load_test.go b/test/e2e/load_test.go index a3ee1814a..3cf24037e 100644 --- a/test/e2e/load_test.go +++ b/test/e2e/load_test.go @@ -104,7 +104,15 @@ var _ = Describe("Podman load", func() { result := podmanTest.Podman([]string{"load", "--signature-policy", "/etc/containers/policy.json", "-i", outfile}) result.WaitWithDefaultTimeout() - Expect(result).Should(Exit(0)) + if IsRemote() { + Expect(result).To(ExitWithError()) + Expect(result.ErrorToString()).To(ContainSubstring("unknown flag")) + result = podmanTest.Podman([]string{"load", "-i", outfile}) + result.WaitWithDefaultTimeout() + Expect(result).Should(Exit(0)) + } else { + Expect(result).Should(Exit(0)) + } }) It("podman load with quiet flag", func() { |