Kaydet (Commit) d4c17859 authored tarafından Joffrey F's avatar Joffrey F

Invalid log driver error raised during create_container step

Signed-off-by: 's avatarJoffrey F <joffrey@docker.com>
üst d8be3e0f
...@@ -280,15 +280,14 @@ class CreateContainerTest(helpers.BaseTestCase): ...@@ -280,15 +280,14 @@ class CreateContainerTest(helpers.BaseTestCase):
config={} config={}
) )
container = self.client.create_container(
BUSYBOX, ['true'],
host_config=self.client.create_host_config(log_config=log_config)
)
expected_msg = "logger: no log driver named 'asdf-nope' is registered" expected_msg = "logger: no log driver named 'asdf-nope' is registered"
with pytest.raises(docker.errors.APIError) as excinfo: with pytest.raises(docker.errors.APIError) as excinfo:
# raises an internal server error 500 # raises an internal server error 500
container = self.client.create_container(
BUSYBOX, ['true'], host_config=self.client.create_host_config(
log_config=log_config
)
)
self.client.start(container) self.client.start(container)
assert expected_msg in str(excinfo.value) assert expected_msg in str(excinfo.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment