|
@@ -270,15 +270,15 @@ class ConfigTest(unittest.TestCase):
|
|
|
)
|
|
|
self.assertEqual(service[0]['entrypoint'], entrypoint)
|
|
|
|
|
|
- def test_validation_message_for_invalid_type_when_multiple_types_allowed(self):
|
|
|
- expected_error_msg = "Service 'web' configuration key 'mem_limit' contains an invalid type, it should be a number or a string"
|
|
|
+ def test_config_environment_contains_boolean_validation_error(self):
|
|
|
+ expected_error_msg = "Service 'web' configuration key 'environment' contains an invalid type"
|
|
|
|
|
|
with self.assertRaisesRegexp(ConfigurationError, expected_error_msg):
|
|
|
config.load(
|
|
|
config.ConfigDetails(
|
|
|
{'web': {
|
|
|
'image': 'busybox',
|
|
|
- 'mem_limit': ['incorrect']
|
|
|
+ 'environment': {'SHOW_STUFF': True}
|
|
|
}},
|
|
|
'working_dir',
|
|
|
'filename.yml'
|