Skip to content

Commit aa11e67

Browse files
ricardobranco777inknos
authored andcommitted
tests: Fix test_manifest_crud on arm64
On arm64, quay.io/libpod/alpine:latest resolves to a platform-specific digest rather than the top-level manifest list digest, so comparing manifest IDs directly fails. Signed-off-by: Ricardo Branco <rbranco@suse.de>
1 parent 56e316e commit aa11e67

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎podman/tests/integration/test_manifests.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ def test_manifest_crud(self):
5757

5858
with self.subTest("Inspect"):
5959
actual = self.client.manifests.get("quay.io/libpod/alpine:latest")
60-
self.assertEqual(actual.id, manifest.id)
60+
# We don't check manifest.id since arm64 resolves a platform-specific
61+
# digest rather than the top-level manifest list digest.
62+
self.assertIsNotNone(actual.id)
63+
self.assertTrue(actual.id)
6164

6265
actual = self.client.manifests.get(manifest.name)
6366
self.assertEqual(actual.id, manifest.id)

0 commit comments

Comments
 (0)