Skip to content

Commit 0fad869

Browse files
committed
integration/commit: Don't check for deprecated fields
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 <pawel.gronowski@docker.com>
1 parent 7d8a161 commit 0fad869

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/integration/api_image_test.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,8 @@ def test_commit(self):
8585
img_id = res['Id']
8686
self.tmp_imgs.append(img_id)
8787
img = self.client.inspect_image(img_id)
88-
assert 'Container' in img
89-
assert img['Container'].startswith(id)
90-
assert 'ContainerConfig' in img
91-
assert 'Image' in img['ContainerConfig']
92-
assert TEST_IMG == img['ContainerConfig']['Image']
93-
busybox_id = self.client.inspect_image(TEST_IMG)['Id']
9488
assert 'Parent' in img
89+
busybox_id = self.client.inspect_image(TEST_IMG)['Id']
9590
assert img['Parent'] == busybox_id
9691

9792
def test_commit_with_changes(self):
@@ -103,8 +98,6 @@ def test_commit_with_changes(self):
10398
)
10499
self.tmp_imgs.append(img_id)
105100
img = self.client.inspect_image(img_id)
106-
assert 'Container' in img
107-
assert img['Container'].startswith(cid['Id'])
108101
assert '8000/tcp' in img['Config']['ExposedPorts']
109102
assert img['Config']['Cmd'] == ['bash']
110103

0 commit comments

Comments
 (0)