Add an acceptance test to show logs behaves properly for stopped containers.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-03-03 18:57:07 -05:00
parent 4cad2a0c5f
commit 4312c93eae
1 changed files with 9 additions and 0 deletions

View File

@ -1222,6 +1222,15 @@ class CLITestCase(DockerClientTestCase):
assert 'test' in result.stdout
assert 'exited with' not in result.stdout
def test_logs_on_stopped_containers_exits(self):
self.base_dir = 'tests/fixtures/echo-services'
self.dispatch(['up'])
result = self.dispatch(['logs'])
assert 'simple' in result.stdout
assert 'another' in result.stdout
assert 'exited with' not in result.stdout
def test_logs_timestamps(self):
self.base_dir = 'tests/fixtures/echo-services'
self.dispatch(['up', '-d'])