mirror of https://github.com/docker/docker-py.git
Fixed integration tests
This commit is contained in:
parent
3fc69abdbf
commit
ff8c9bb5fd
|
@ -25,7 +25,7 @@ import unittest
|
||||||
import docker
|
import docker
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from tests.test import Cleanup
|
from test import Cleanup
|
||||||
|
|
||||||
# FIXME: missing tests for
|
# FIXME: missing tests for
|
||||||
# export; history; import_image; insert; port; push; tag; get; load
|
# export; history; import_image; insert; port; push; tag; get; load
|
||||||
|
@ -426,7 +426,7 @@ class TestKillWithSignal(BaseTestCase):
|
||||||
id = container['Id']
|
id = container['Id']
|
||||||
self.client.start(id)
|
self.client.start(id)
|
||||||
self.tmp_containers.append(id)
|
self.tmp_containers.append(id)
|
||||||
self.client.kill(id, signal=signal.SIGTERM)
|
self.client.kill(id, signal=signal.SIGKILL)
|
||||||
exitcode = self.client.wait(id)
|
exitcode = self.client.wait(id)
|
||||||
self.assertNotEqual(exitcode, 0)
|
self.assertNotEqual(exitcode, 0)
|
||||||
container_info = self.client.inspect_container(id)
|
container_info = self.client.inspect_container(id)
|
||||||
|
@ -618,10 +618,8 @@ class TestRestartingContainer(BaseTestCase):
|
||||||
container = self.client.create_container('busybox', ['false'])
|
container = self.client.create_container('busybox', ['false'])
|
||||||
id = container['Id']
|
id = container['Id']
|
||||||
self.client.start(id, restart_policy={
|
self.client.start(id, restart_policy={
|
||||||
{
|
"Name": "on-failure",
|
||||||
"Name": "on-failure",
|
"MaximumRetryCount": 1
|
||||||
"MaximumRetryCount": 1
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
self.client.wait(id)
|
self.client.wait(id)
|
||||||
self.client.remove_container(id)
|
self.client.remove_container(id)
|
||||||
|
|
Loading…
Reference in New Issue