mirror of
https://github.com/docker/compose.git
synced 2025-07-12 16:24:32 +02:00
Merge pull request #4414 from shin-/4184-merge-pids
Add missing comma in DOCKER_CONFIG_KEYS list
This commit is contained in:
commit
f106d23776
@ -78,7 +78,7 @@ DOCKER_CONFIG_KEYS = [
|
|||||||
'memswap_limit',
|
'memswap_limit',
|
||||||
'mem_swappiness',
|
'mem_swappiness',
|
||||||
'net',
|
'net',
|
||||||
'oom_score_adj'
|
'oom_score_adj',
|
||||||
'pid',
|
'pid',
|
||||||
'ports',
|
'ports',
|
||||||
'privileged',
|
'privileged',
|
||||||
|
@ -1748,6 +1748,24 @@ class ConfigTest(unittest.TestCase):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def test_merge_pid(self):
|
||||||
|
# Regression: https://github.com/docker/compose/issues/4184
|
||||||
|
base = {
|
||||||
|
'image': 'busybox',
|
||||||
|
'pid': 'host'
|
||||||
|
}
|
||||||
|
|
||||||
|
override = {
|
||||||
|
'labels': {'com.docker.compose.test': 'yes'}
|
||||||
|
}
|
||||||
|
|
||||||
|
actual = config.merge_service_dicts(base, override, V2_0)
|
||||||
|
assert actual == {
|
||||||
|
'image': 'busybox',
|
||||||
|
'pid': 'host',
|
||||||
|
'labels': {'com.docker.compose.test': 'yes'}
|
||||||
|
}
|
||||||
|
|
||||||
def test_external_volume_config(self):
|
def test_external_volume_config(self):
|
||||||
config_details = build_config_details({
|
config_details = build_config_details({
|
||||||
'version': '2',
|
'version': '2',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user