|
@@ -145,15 +145,11 @@ class CLITestCase(DockerClientTestCase):
|
|
# Prevent tearDown from trying to create a project
|
|
# Prevent tearDown from trying to create a project
|
|
self.base_dir = None
|
|
self.base_dir = None
|
|
|
|
|
|
- # TODO: this shouldn't be v2-dependent
|
|
|
|
- @v2_only()
|
|
|
|
def test_config_list_services(self):
|
|
def test_config_list_services(self):
|
|
self.base_dir = 'tests/fixtures/v2-full'
|
|
self.base_dir = 'tests/fixtures/v2-full'
|
|
result = self.dispatch(['config', '--services'])
|
|
result = self.dispatch(['config', '--services'])
|
|
assert set(result.stdout.rstrip().split('\n')) == {'web', 'other'}
|
|
assert set(result.stdout.rstrip().split('\n')) == {'web', 'other'}
|
|
|
|
|
|
- # TODO: this shouldn't be v2-dependent
|
|
|
|
- @v2_only()
|
|
|
|
def test_config_quiet_with_error(self):
|
|
def test_config_quiet_with_error(self):
|
|
self.base_dir = None
|
|
self.base_dir = None
|
|
result = self.dispatch([
|
|
result = self.dispatch([
|
|
@@ -162,14 +158,10 @@ class CLITestCase(DockerClientTestCase):
|
|
], returncode=1)
|
|
], returncode=1)
|
|
assert "'notaservice' must be a mapping" in result.stderr
|
|
assert "'notaservice' must be a mapping" in result.stderr
|
|
|
|
|
|
- # TODO: this shouldn't be v2-dependent
|
|
|
|
- @v2_only()
|
|
|
|
def test_config_quiet(self):
|
|
def test_config_quiet(self):
|
|
self.base_dir = 'tests/fixtures/v2-full'
|
|
self.base_dir = 'tests/fixtures/v2-full'
|
|
assert self.dispatch(['config', '-q']).stdout == ''
|
|
assert self.dispatch(['config', '-q']).stdout == ''
|
|
|
|
|
|
- # TODO: this shouldn't be v2-dependent
|
|
|
|
- @v2_only()
|
|
|
|
def test_config_default(self):
|
|
def test_config_default(self):
|
|
self.base_dir = 'tests/fixtures/v2-full'
|
|
self.base_dir = 'tests/fixtures/v2-full'
|
|
result = self.dispatch(['config'])
|
|
result = self.dispatch(['config'])
|