Skip to content

Commit

Permalink
Revert back the Integration Test.
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Balazs <milanbalazs01@gmail.com>
  • Loading branch information
milanbalazs committed Jul 8, 2024
1 parent 2aee85e commit 9e6bc64
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions podman/tests/integration/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,14 @@ def test_image_crud(self):

with self.subTest("Export Image to tarball (in memory)"):
buffer = io.BytesIO()
for chunk in image.save(named=True):
for chunk in image.save():
buffer.write(chunk)
buffer.seek(0, 0)

with tarfile.open(fileobj=buffer, mode="r") as tar:
items = tar.getnames()
# Check if required files are available in the tarball
self.assertIn("manifest.json", items)
self.assertIn("repositories", items)
# Extract the 'repositories' file
repositories_file = tar.extractfile("repositories")
if repositories_file is not None:
# Check the content of the "repositories" file.
repositories_content = repositories_file.read().decode("utf-8")
self.assertTrue("quay.io/libpod/alpine" in str(repositories_content))
self.assertIn("manifest.json", items)
self.assertIn("repositories", items)

with self.subTest("List images"):
image_list = self.client.images.list()
Expand Down

0 comments on commit 9e6bc64

Please sign in to comment.