mirror of https://github.com/docker/docker-py.git
Fixed start_container tests
This commit is contained in:
parent
e992a8127d
commit
c29a6a2841
|
|
@ -585,17 +585,12 @@ class DockerClientTest(Cleanup, unittest.TestCase):
|
||||||
args[0][0],
|
args[0][0],
|
||||||
url_prefix + 'containers/3cc2351ab11b/start'
|
url_prefix + 'containers/3cc2351ab11b/start'
|
||||||
)
|
)
|
||||||
|
self.assertEqual(json.loads(args[1]['data']), {})
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
json.loads(args[1]['data']),
|
args[1]['headers'], {'Content-Type': 'application/json'}
|
||||||
{"PublishAllPorts": False, "Privileged": False}
|
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
args[1]['headers'],
|
args[1]['timeout'], docker.client.DEFAULT_TIMEOUT_SECONDS
|
||||||
{'Content-Type': 'application/json'}
|
|
||||||
)
|
|
||||||
self.assertEqual(
|
|
||||||
args[1]['timeout'],
|
|
||||||
docker.client.DEFAULT_TIMEOUT_SECONDS
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_create_container_with_lxc_conf(self):
|
def test_create_container_with_lxc_conf(self):
|
||||||
|
|
@ -876,17 +871,12 @@ class DockerClientTest(Cleanup, unittest.TestCase):
|
||||||
args[0][0],
|
args[0][0],
|
||||||
url_prefix + 'containers/3cc2351ab11b/start'
|
url_prefix + 'containers/3cc2351ab11b/start'
|
||||||
)
|
)
|
||||||
|
self.assertEqual(json.loads(args[1]['data']), {})
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
json.loads(args[1]['data']),
|
args[1]['headers'], {'Content-Type': 'application/json'}
|
||||||
{"PublishAllPorts": False, "Privileged": False}
|
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
args[1]['headers'],
|
args[1]['timeout'], docker.client.DEFAULT_TIMEOUT_SECONDS
|
||||||
{'Content-Type': 'application/json'}
|
|
||||||
)
|
|
||||||
self.assertEqual(
|
|
||||||
args[1]['timeout'],
|
|
||||||
docker.client.DEFAULT_TIMEOUT_SECONDS
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_create_container_with_restart_policy(self):
|
def test_create_container_with_restart_policy(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue