Add --volumes flag to config command

Closes #3609

Signed-off-by: Evan Shaw <evan@vendhq.com>
This commit is contained in:
Evan Shaw 2017-03-02 10:03:31 +13:00
parent a953651597
commit d67261f26e
2 changed files with 10 additions and 0 deletions

View file

@ -177,6 +177,11 @@ class CLITestCase(DockerClientTestCase):
result = self.dispatch(['config', '--services'])
assert set(result.stdout.rstrip().split('\n')) == {'web', 'other'}
def test_config_list_volumes(self):
self.base_dir = 'tests/fixtures/v2-full'
result = self.dispatch(['config', '--volumes'])
assert set(result.stdout.rstrip().split('\n')) == {'data'}
def test_config_quiet_with_error(self):
self.base_dir = None
result = self.dispatch([