1
0
mirror of https://github.com/docker/docs.git synced 2026-11-06 12:54:24 +03:00

Adding tests Signed-off-by: John Harris <john@johnharris.io>

This commit is contained in:
johnharris85
2016-04-17 14:01:06 -04:00
committed by Joffrey F
parent e4d2d7ed8a
commit f7cd94d4a9

View File

@@ -1360,6 +1360,17 @@ class ConfigTest(unittest.TestCase):
config.load(config_details)
assert "Service 'one' depends on service 'three'" in exc.exconly()
def test_linked_service_is_undefined(self):
with self.assertRaises(ConfigurationError):
config.load(
build_config_details({
'version': '2',
'services': {
'web': {'image': 'busybox', 'links': ['db']},
},
})
)
def test_load_dockerfile_without_context(self):
config_details = build_config_details({
'version': '2',