test/e2e: fix "podman load localhost registry from dir" test

When loading from an OCI directory without an explicit image name, the
image is now stored by digest instead of using the path as the name.

Update the test to verify the load succeeded and output contains the
sha256 digest, rather than checking for a specific image name.

This aligns with the behavior change from containers/common and fixes
the rootful localintegration test failure.

(partial cherry-pick from commit e66c04c1f7)

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
Lokesh Mandvekar 2026-01-29 19:09:26 +05:30
parent a7b2b9da8c
commit 82434d00d9
No known key found for this signature in database
GPG key ID: 1C1EDD7CC7C3A0DD

View file

@ -268,11 +268,7 @@ var _ = Describe("Podman load", func() {
load := podmanTest.Podman([]string{"load", "-i", outfile})
load.WaitWithDefaultTimeout()
Expect(load).Should(Exit(0))
result := podmanTest.Podman([]string{"images", "load:latest"})
result.WaitWithDefaultTimeout()
Expect(result.OutputToString()).To(Not(ContainSubstring("docker")))
Expect(result.OutputToString()).To(ContainSubstring("localhost"))
Expect(load.OutputToString()).To(ContainSubstring("Loaded image: sha256:"))
})
It("podman load xz compressed image", func() {