|
@@ -1411,7 +1411,6 @@ class ConfigTest(unittest.TestCase):
|
|
|
]
|
|
|
|
|
|
def test_group_add_option(self):
|
|
|
-
|
|
|
actual = config.load(build_config_details({
|
|
|
'version': '2',
|
|
|
'services': {
|
|
@@ -1430,6 +1429,25 @@ class ConfigTest(unittest.TestCase):
|
|
|
}
|
|
|
]
|
|
|
|
|
|
+ def test_dns_opt_option(self):
|
|
|
+ actual = config.load(build_config_details({
|
|
|
+ 'version': '2',
|
|
|
+ 'services': {
|
|
|
+ 'web': {
|
|
|
+ 'image': 'alpine',
|
|
|
+ 'dns_opt': ["use-vc", "no-tld-query"]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }))
|
|
|
+
|
|
|
+ assert actual.services == [
|
|
|
+ {
|
|
|
+ 'name': 'web',
|
|
|
+ 'image': 'alpine',
|
|
|
+ 'dns_opt': ["use-vc", "no-tld-query"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+
|
|
|
def test_isolation_option(self):
|
|
|
actual = config.load(build_config_details({
|
|
|
'version': V2_1,
|