Kaydet (Commit) a864059b authored tarafından Alessandro Boch's avatar Alessandro Boch

Adjust test_create_network_with_ipam_config

- to account for API change: IPAM class will now
  also include a Data class, besides Config.
Signed-off-by: 's avatarAlessandro Boch <aboch@docker.com>
üst 52c2cc84
...@@ -69,9 +69,9 @@ class TestNetworks(helpers.BaseTestCase): ...@@ -69,9 +69,9 @@ class TestNetworks(helpers.BaseTestCase):
assert ipam.pop('Options', None) is None assert ipam.pop('Options', None) is None
assert ipam == { assert ipam['Driver'] == 'default'
'Driver': 'default',
'Config': [{ assert ipam['Config'] == [{
'Subnet': "172.28.0.0/16", 'Subnet': "172.28.0.0/16",
'IPRange': "172.28.5.0/24", 'IPRange': "172.28.5.0/24",
'Gateway': "172.28.5.254", 'Gateway': "172.28.5.254",
...@@ -80,8 +80,7 @@ class TestNetworks(helpers.BaseTestCase): ...@@ -80,8 +80,7 @@ class TestNetworks(helpers.BaseTestCase):
"b": "172.28.1.6", "b": "172.28.1.6",
"c": "172.28.1.7", "c": "172.28.1.7",
}, },
}], }]
}
@requires_api_version('1.21') @requires_api_version('1.21')
def test_create_network_with_host_driver_fails(self): def test_create_network_with_host_driver_fails(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment