Validate that each section of the config is a mapping before running interpolation.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
cfda9d844e
commit
7d22809ef4
5 changed files with 91 additions and 37 deletions
|
|
@ -159,7 +159,7 @@ class CLITestCase(DockerClientTestCase):
|
|||
'-f', 'tests/fixtures/invalid-composefile/invalid.yml',
|
||||
'config', '-q'
|
||||
], returncode=1)
|
||||
assert "'notaservice' doesn't have any configuration" in result.stderr
|
||||
assert "'notaservice' is the wrong type" in result.stderr
|
||||
|
||||
# TODO: this shouldn't be v2-dependent
|
||||
@v2_only()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue