Skip to content

Commit

Permalink
integration/commit: Don't check for deprecated fields
Browse files Browse the repository at this point in the history
Container related Image fields (`Container` and `ContainerConfig`) will
be deprecated in API v1.44 and will be removed in v1.45.

Signed-off-by: Paweł Gronowski <[email protected]>
  • Loading branch information
vvoland committed Dec 19, 2023
1 parent 7d8a161 commit 0fad869
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/integration/api_image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,8 @@ def test_commit(self):
img_id = res['Id']
self.tmp_imgs.append(img_id)
img = self.client.inspect_image(img_id)
assert 'Container' in img
assert img['Container'].startswith(id)
assert 'ContainerConfig' in img
assert 'Image' in img['ContainerConfig']
assert TEST_IMG == img['ContainerConfig']['Image']
busybox_id = self.client.inspect_image(TEST_IMG)['Id']
assert 'Parent' in img
busybox_id = self.client.inspect_image(TEST_IMG)['Id']
assert img['Parent'] == busybox_id

def test_commit_with_changes(self):
Expand All @@ -103,8 +98,6 @@ def test_commit_with_changes(self):
)
self.tmp_imgs.append(img_id)
img = self.client.inspect_image(img_id)
assert 'Container' in img
assert img['Container'].startswith(cid['Id'])
assert '8000/tcp' in img['Config']['ExposedPorts']
assert img['Config']['Cmd'] == ['bash']

Expand Down

0 comments on commit 0fad869

Please sign in to comment.