Move ulimits validation to validation.py and improve the error message.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-01-19 15:47:57 -05:00 committed by Aanand Prasad
commit 3f65bdcf46
3 changed files with 15 additions and 13 deletions

View file

@ -700,7 +700,7 @@ class ConfigTest(unittest.TestCase):
assert "'hard' is a required property" in exc.exconly()
def test_config_ulimits_soft_greater_than_hard_error(self):
expected = "cannot contain a 'soft' value higher than 'hard' value"
expected = "'soft' value can not be greater than 'hard' value"
with pytest.raises(ConfigurationError) as exc:
config.load(build_config_details(