Commit 407a25e8 authored by Samuel GAIST's avatar Samuel GAIST

[test][docker] Add test for entrypoint property

parent f4bb5cda
......@@ -164,6 +164,26 @@ class WorkdirTest(NoDiscoveryTests):
self.assertEqual(content, "8.4\n")
class EntrypointTest(NoDiscoveryTests):
@slow
def test_entrypoint(self):
"""Test that the entrypoint property is correctly used.
"""
container = self.host.create_container('debian:8.4', ["42"])
container.set_entrypoint('echo')
self.host.start(container)
status = self.host.wait(container)
logs = self.host.logs(container)
if status != 0:
print(logs)
self.assertEqual(status, 0)
self.assertEqual(logs, "42\n")
class AsyncTest(NoDiscoveryTests):
@slow
......
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