Implement podman.containers.commit()

- Add API support
- Update tests
- Make changes from reviews

Signed-off-by: Jhon Honce <jhonce@redhat.com>

Closes: #798
Approved by: mheon
This commit is contained in:
Jhon Honce
2018-05-17 11:57:59 -07:00
committed by Atomic Bot
parent 228c71b1da
commit 4b804e8516
4 changed files with 87 additions and 17 deletions

View File

@ -49,11 +49,6 @@ class TestImages(PodmanTestCase):
with self.assertRaisesNotImplemented():
self.pclient.images.create()
@unittest.skip('Code implemented')
def test_create_from(self):
with self.assertRaisesNotImplemented():
self.pclient.images.create_from()
def test_export(self):
path = os.path.join(self.tmpdir, 'alpine_export.tar')
target = 'oci-archive:{}:latest'.format(path)
@ -125,7 +120,7 @@ class TestImages(PodmanTestCase):
self.assertIn(new_img, actual)
after = self.loadCache()
self.assertEqual(len(before), len(after))
self.assertGreaterEqual(len(before), len(after))
TestImages.setUpClass()
self.loadCache()