Skip to content

Commit 6ceb082

Browse files
authored
Merge pull request #3203 from vvoland/deprecated-containerconfig
integration/commit: Don't check for deprecated fields
2 parents 097382b + 0fad869 commit 6ceb082

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)