Merge pull request #4130 from docker/bump-1.9.0-rc4

Bump 1.9.0 rc4
This commit is contained in:
Joffrey F 2016-11-08 16:29:48 -08:00 committed by GitHub
commit b426868eda
5 changed files with 49 additions and 11 deletions

View File

@ -1,4 +1,4 @@
from __future__ import absolute_import
from __future__ import unicode_literals
__version__ = '1.9.0-rc3'
__version__ = '1.9.0-rc4'

View File

@ -771,7 +771,7 @@ def merge_service_dicts(base, override, version):
for field in ['dns', 'dns_search', 'env_file', 'tmpfs']:
md.merge_field(field, merge_list_or_string)
md.merge_field('logging', merge_logging)
md.merge_field('logging', merge_logging, default={})
for field in set(ALLOWED_KEYS) - set(md):
md.merge_scalar(field)

View File

@ -53,14 +53,7 @@ class Network(object):
try:
data = self.inspect()
if self.driver and data['Driver'] != self.driver:
raise ConfigurationError(
'Network "{}" needs to be recreated - driver has changed'
.format(self.full_name))
if data['Options'] != (self.driver_opts or {}):
raise ConfigurationError(
'Network "{}" needs to be recreated - options have changed'
.format(self.full_name))
check_remote_network_config(data, self)
except NotFound:
driver_name = 'the default driver'
if self.driver:

View File

@ -15,7 +15,7 @@
set -e
VERSION="1.9.0-rc3"
VERSION="1.9.0-rc4"
IMAGE="docker/compose:$VERSION"

View File

@ -1657,6 +1657,51 @@ class ConfigTest(unittest.TestCase):
}
}
def test_merge_logging_v2_no_base(self):
base = {
'image': 'alpine:edge'
}
override = {
'logging': {
'driver': 'json-file',
'options': {
'frequency': '2000'
}
}
}
actual = config.merge_service_dicts(base, override, V2_0)
assert actual == {
'image': 'alpine:edge',
'logging': {
'driver': 'json-file',
'options': {
'frequency': '2000'
}
}
}
def test_merge_logging_v2_no_override(self):
base = {
'image': 'alpine:edge',
'logging': {
'driver': 'syslog',
'options': {
'frequency': '2000'
}
}
}
override = {}
actual = config.merge_service_dicts(base, override, V2_0)
assert actual == {
'image': 'alpine:edge',
'logging': {
'driver': 'syslog',
'options': {
'frequency': '2000'
}
}
}
def test_external_volume_config(self):
config_details = build_config_details({
'version': '2',