Skip to content

Commit

Permalink
Updated 'images' command integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Madeeks committed Aug 24, 2023
1 parent 0aae6e9 commit 0ab9b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CI/src/integration_tests/test_command_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import unittest
import os
import re


import common.util as util
Expand Down Expand Up @@ -68,6 +67,7 @@ def _test_command_images_digests(self, image, expected_name, expected_tag, expec
self.assertEqual(image_output[2], expected_digest)

def _test_command_images(self, is_centralized_repository):
import re
expected_header = ["REPOSITORY", "TAG", "IMAGE", "ID", "CREATED", "SIZE", "SERVER"]

# pull image from default registry
Expand All @@ -91,8 +91,8 @@ def _test_command_images(self, is_centralized_repository):
image_output = self._image_in_output_of_images_command(is_centralized_repository, False, "load/library/loaded_image", "latest", "")
self.assertEqual(image_output[0], "load/library/loaded_image")
self.assertEqual(image_output[1], "latest")
self.assertEqual(image_output[2], "501d1a8f0487")
self.assertEqual(image_output[5], "load")
self.assertTrue(re.match(r"[a-zA-Z0-9]{12}", image_output[2]))
self.assertTrue(re.match(r"1\.[89]\dMB", image_output[4]))

def _header_in_output_of_images_command(self, is_centralized_repository, print_digests=False):
Expand Down

0 comments on commit 0ab9b3e

Please sign in to comment.