DockerCLI/compose/convert
Sebastiaan van Stijn 1f57f07070 Improve validation for volume specs
The current validation only checked for the
number of elements in the volume-spec, however,
did not validate if the elements were empty.

Because of this, an empty volume-spec (""),
or volume spec only containing separators ("::")
would not be invalidated.

This adds a simple check for empty elements in
the volume-spec, and returns an error if
the spec is invalid.

A unit-test is also added to verify the behavior.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-12-19 01:50:08 +01:00
..
compose.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
compose_test.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
service.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
service_test.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
volume.go Improve validation for volume specs 2016-12-19 01:50:08 +01:00
volume_test.go Improve validation for volume specs 2016-12-19 01:50:08 +01:00