mirror of https://github.com/docker/compose.git
Add stop_grace_period to ALLOWED_KEYS
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
0c5e82955e
commit
fffcc05a8e
|
@ -126,6 +126,7 @@ ALLOWED_KEYS = DOCKER_CONFIG_KEYS + [
|
|||
'network_mode',
|
||||
'init',
|
||||
'scale',
|
||||
'stop_grace_period',
|
||||
]
|
||||
|
||||
DOCKER_VALID_URL_PREFIXES = (
|
||||
|
|
|
@ -1150,7 +1150,8 @@ class ConfigTest(unittest.TestCase):
|
|||
'volumes': [
|
||||
{'source': '/a', 'target': '/b', 'type': 'bind'},
|
||||
{'source': 'vol', 'target': '/x', 'type': 'volume', 'read_only': True}
|
||||
]
|
||||
],
|
||||
'stop_grace_period': '30s',
|
||||
}
|
||||
},
|
||||
'volumes': {'vol': {}}
|
||||
|
@ -1177,6 +1178,7 @@ class ConfigTest(unittest.TestCase):
|
|||
'/c:/b:rw',
|
||||
{'source': 'vol', 'target': '/x', 'type': 'volume', 'read_only': True}
|
||||
]
|
||||
assert service_dicts[0]['stop_grace_period'] == '30s'
|
||||
|
||||
@mock.patch.dict(os.environ)
|
||||
def test_volume_mode_override(self):
|
||||
|
|
Loading…
Reference in New Issue