Make config validation error messages more consistent.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
7d22809ef4
commit
ea8032c115
3 changed files with 29 additions and 27 deletions
|
|
@ -159,7 +159,7 @@ class CLITestCase(DockerClientTestCase):
|
|||
'-f', 'tests/fixtures/invalid-composefile/invalid.yml',
|
||||
'config', '-q'
|
||||
], returncode=1)
|
||||
assert "'notaservice' is the wrong type" in result.stderr
|
||||
assert "'notaservice' must be a mapping" in result.stderr
|
||||
|
||||
# TODO: this shouldn't be v2-dependent
|
||||
@v2_only()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue