mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-12 08:57:42 +00:00
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:
parent
a7b2b9da8c
commit
82434d00d9
1 changed files with 1 additions and 5 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue