mirror of
https://github.com/containers/podman.git
synced 2025-06-27 05:26:50 +08:00
tests: fix "Storing signatures" check
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] https://github.com/containers/image/pull/2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -403,7 +403,6 @@ var _ = Describe("Podman images", func() {
|
|||||||
Expect(output).To(ContainSubstring("Copying blob "))
|
Expect(output).To(ContainSubstring("Copying blob "))
|
||||||
Expect(output).To(ContainSubstring("Copying config "))
|
Expect(output).To(ContainSubstring("Copying config "))
|
||||||
Expect(output).To(ContainSubstring("Writing manifest to image destination"))
|
Expect(output).To(ContainSubstring("Writing manifest to image destination"))
|
||||||
Expect(output).To(ContainSubstring("Storing signatures"))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
It("Build no options", func() {
|
It("Build no options", func() {
|
||||||
|
@ -451,7 +451,6 @@ RUN touch /file
|
|||||||
Expect(output).To(ContainSubstring("Copying blob "))
|
Expect(output).To(ContainSubstring("Copying blob "))
|
||||||
Expect(output).To(ContainSubstring("Copying config "))
|
Expect(output).To(ContainSubstring("Copying config "))
|
||||||
Expect(output).To(ContainSubstring("Writing manifest to image destination"))
|
Expect(output).To(ContainSubstring("Writing manifest to image destination"))
|
||||||
Expect(output).To(ContainSubstring("Storing signatures"))
|
|
||||||
|
|
||||||
push = podmanTest.Podman([]string{"manifest", "push", "--compression-format=gzip", "--compression-level=2", "--tls-verify=false", "--creds=podmantest:wrongpasswd", "foo", "localhost:" + registry.Port + "/credstest"})
|
push = podmanTest.Podman([]string{"manifest", "push", "--compression-format=gzip", "--compression-level=2", "--tls-verify=false", "--creds=podmantest:wrongpasswd", "foo", "localhost:" + registry.Port + "/credstest"})
|
||||||
push.WaitWithDefaultTimeout()
|
push.WaitWithDefaultTimeout()
|
||||||
|
@ -114,7 +114,6 @@ var _ = Describe("Podman push", func() {
|
|||||||
Expect(output).To(ContainSubstring("Copying blob "))
|
Expect(output).To(ContainSubstring("Copying blob "))
|
||||||
Expect(output).To(ContainSubstring("Copying config "))
|
Expect(output).To(ContainSubstring("Copying config "))
|
||||||
Expect(output).To(ContainSubstring("Writing manifest to image destination"))
|
Expect(output).To(ContainSubstring("Writing manifest to image destination"))
|
||||||
Expect(output).To(ContainSubstring("Storing signatures"))
|
|
||||||
|
|
||||||
bitSize := 1024
|
bitSize := 1024
|
||||||
keyFileName := filepath.Join(podmanTest.TempDir, "key")
|
keyFileName := filepath.Join(podmanTest.TempDir, "key")
|
||||||
|
@ -321,7 +321,7 @@ Deleted: $pauseID"
|
|||||||
# Without -q: verbose output, but only on podman-local, not remote
|
# Without -q: verbose output, but only on podman-local, not remote
|
||||||
run_podman commit my-container --format docker -m comment my-test-image1
|
run_podman commit my-container --format docker -m comment my-test-image1
|
||||||
if ! is_remote; then
|
if ! is_remote; then
|
||||||
assert "$output" =~ "Getting image.*Writing manif.*Storing signatu" \
|
assert "$output" =~ "Getting image.*Writing manif" \
|
||||||
"Without -q, verbose output"
|
"Without -q, verbose output"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ verify_iid_and_name() {
|
|||||||
|
|
||||||
# Copy it there.
|
# Copy it there.
|
||||||
run_podman image scp $newname ${notme}@localhost::
|
run_podman image scp $newname ${notme}@localhost::
|
||||||
is "$output" "Copying blob .*Copying config.*Writing manifest.*Storing signatures"
|
is "$output" "Copying blob .*Copying config.*Writing manifest"
|
||||||
|
|
||||||
# confirm that image was copied. FIXME: also try $PODMAN image inspect?
|
# confirm that image was copied. FIXME: also try $PODMAN image inspect?
|
||||||
_sudo $PODMAN image exists $newname
|
_sudo $PODMAN image exists $newname
|
||||||
|
Reference in New Issue
Block a user